Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 548290b

Browse files
authored
Run a minor code quality checker over the repo (#8524)
* Run a minor code quality checker over the repo Largely targeted at spelling of common words and misc code issues. * Update snapshots
1 parent 89d7760 commit 548290b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+72
-72
lines changed

src/BasePlatform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export default abstract class BasePlatform {
237237
}
238238

239239
/**
240-
* Restarts the application, without neccessarily reloading
240+
* Restarts the application, without necessarily reloading
241241
* any application code
242242
*/
243243
abstract reload();

src/CallHandler.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ export default class CallHandler extends EventEmitter {
948948
): Promise<void> {
949949
if (consultFirst) {
950950
// if we're consulting, we just start by placing a call to the transfer
951-
// target (passing the transferee so the actual tranfer can happen later)
951+
// target (passing the transferee so the actual transfer can happen later)
952952
this.dialNumber(destination, call);
953953
return;
954954
}

src/HtmlUtils.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ const transformTags: IExtendedSanitizeOptions["transformTags"] = { // custom to
187187
delete attribs.target;
188188
}
189189
} else {
190-
// Delete the href attrib if it is falsey
190+
// Delete the href attrib if it is falsy
191191
delete attribs.href;
192192
}
193193

src/ImageUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ limitations under the License.
2525
* reflect the actual height the scaled thumbnail occupies.
2626
*
2727
* This is very useful for calculating how much height a thumbnail will actually
28-
* consume in the timeline, when performing scroll offset calcuations
28+
* consume in the timeline, when performing scroll offset calculations
2929
* (e.g. scroll locking)
3030
*/
3131
export function thumbHeight(fullWidth: number, fullHeight: number, thumbWidth: number, thumbHeight: number) {

src/Rooms.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export function looksLikeDirectMessageRoom(room: Room, myUserId: string): boolea
5252
// Used to split rooms via tags
5353
const tagNames = Object.keys(room.tags);
5454
// Used for 1:1 direct chats
55-
// Show 1:1 chats in seperate "Direct Messages" section as long as they haven't
55+
// Show 1:1 chats in separate "Direct Messages" section as long as they haven't
5656
// been moved to a different tag section
5757
const totalMemberCount = room.currentState.getJoinedMemberCount() +
5858
room.currentState.getInvitedMemberCount();

src/async-components/views/dialogs/security/CreateKeyBackupDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export default class CreateKeyBackupDialog extends React.PureComponent<IProps, I
291291
changeText = _t("Use a different passphrase?");
292292
} else if (!this.state.passPhrase.startsWith(this.state.passPhraseConfirm)) {
293293
// only tell them they're wrong if they've actually gone wrong.
294-
// Security concious readers will note that if you left element-web unattended
294+
// Security conscious readers will note that if you left element-web unattended
295295
// on this screen, this would make it easy for a malicious person to guess
296296
// your passphrase one letter at a time, but they could get this faster by
297297
// just opening the browser's developer tools and reading it.

src/async-components/views/dialogs/security/CreateSecretStorageDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ export default class CreateSecretStorageDialog extends React.PureComponent<IProp
649649
changeText = _t("Use a different passphrase?");
650650
} else if (!this.state.passPhrase.startsWith(this.state.passPhraseConfirm)) {
651651
// only tell them they're wrong if they've actually gone wrong.
652-
// Security concious readers will note that if you left element-web unattended
652+
// Security conscious readers will note that if you left element-web unattended
653653
// on this screen, this would make it easy for a malicious person to guess
654654
// your passphrase one letter at a time, but they could get this faster by
655655
// just opening the browser's developer tools and reading it.

src/components/views/auth/CountryDropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export default class CountryDropdown extends React.Component<IProps, IState> {
135135
});
136136

137137
// default value here too, otherwise we need to handle null / undefined
138-
// values between mounting and the initial value propgating
138+
// values between mounting and the initial value propagating
139139
const value = this.props.value || this.state.defaultCountry.iso2;
140140

141141
return <Dropdown

src/components/views/beacon/LeftPanelLiveShareWarning.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const getLabel = (hasStoppingErrors: boolean, hasLocationErrors: boolean): strin
5656
return _t('An error occurred while stopping your live location');
5757
}
5858
if (hasLocationErrors) {
59-
return _t('An error occured whilst sharing your live location');
59+
return _t('An error occurred whilst sharing your live location');
6060
}
6161
return _t('You are sharing your live location');
6262
};

src/components/views/beacon/RoomLiveShareWarning.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import LiveTimeRemaining from './LiveTimeRemaining';
2929

3030
const getLabel = (hasLocationPublishError: boolean, hasStopSharingError: boolean): string => {
3131
if (hasLocationPublishError) {
32-
return _t('An error occured whilst sharing your live location, please try again');
32+
return _t('An error occurred whilst sharing your live location, please try again');
3333
}
3434
if (hasStopSharingError) {
3535
return _t('An error occurred while stopping your live location, please try again');

0 commit comments

Comments
 (0)