Skip to content

Commit 234dd02

Browse files
committed
Fix spelling errors in some comments.
1 parent 7e50b86 commit 234dd02

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

packages/desktop/app/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ function migrateSnapStorage() {
9393
})
9494
} catch (error) {
9595
console.error(
96-
`Migration: error occured while moving ${fullFilePath} to ${dest}:`,
96+
`Migration: error occurred while moving ${fullFilePath} to ${dest}:`,
9797
// eslint-disable-next-line @typescript-eslint/no-explicit-any
9898
(error as any)?.message ?? error,
9999
)
@@ -121,7 +121,7 @@ function migrateSnapStorage() {
121121
fs.copySync(store.data.backupsLocation, newLocation)
122122
} catch (error) {
123123
console.error(
124-
`Migration: error occured while moving ${store.data.backupsLocation} to ${documentsDir}:`,
124+
`Migration: error occurred while moving ${store.data.backupsLocation} to ${documentsDir}:`,
125125
// eslint-disable-next-line @typescript-eslint/no-explicit-any
126126
(error as any)?.message ?? error,
127127
)

packages/sncrypto-common/src/Common/PureCryptoInterface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export interface PureCryptoInterface {
193193
/**
194194
* Generates a random secret for TOTP authentication
195195
*
196-
* RFC4226 reccomends a length of at least 160 bits = 32 b32 chars
196+
* RFC4226 recommends a length of at least 160 bits = 32 b32 chars
197197
* https://datatracker.ietf.org/doc/html/rfc4226#section-4
198198
*/
199199
generateOtpSecret(): Promise<string>

packages/sncrypto-web/src/crypto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ export class SNWebCrypto implements PureCryptoInterface {
441441
/**
442442
* Generates a random secret for TOTP authentication
443443
*
444-
* RFC4226 reccomends a length of at least 160 bits = 32 b32 chars
444+
* RFC4226 recommends a length of at least 160 bits = 32 b32 chars
445445
* https://datatracker.ietf.org/doc/html/rfc4226#section-4
446446
*/
447447
public async generateOtpSecret(): Promise<string> {

packages/snjs/mocha/protection.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ describe('protections', function () {
522522
})
523523

524524
describe('unprotect notes', function () {
525-
it('prompts for password and unprotects all notes if challenge is succesful', async function () {
525+
it('prompts for password and unprotects all notes if challenge is successful', async function () {
526526
let challengePrompts = 0
527527
application = await Factory.createApplicationWithFakeCrypto(Factory.randomString())
528528
const passcode = 'passcode'
@@ -559,7 +559,7 @@ describe('protections', function () {
559559
expect(challengePrompts).to.equal(1)
560560
})
561561

562-
it('prompts for passcode and unprotects all notes if challenge is succesful', async function () {
562+
it('prompts for passcode and unprotects all notes if challenge is successful', async function () {
563563
let challengePrompts = 0
564564
application = await Factory.createApplicationWithFakeCrypto(Factory.randomString())
565565
const passcode = 'passcode'

packages/snjs/mocha/sync_tests/conflicting.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ describe('online conflict handling', function () {
660660
await sharedFinalAssertions()
661661
})
662662

663-
it('succesful server side saving but dropped packet response should not create sync conflict', async () => {
663+
it('successful server side saving but dropped packet response should not create sync conflict', async () => {
664664
/**
665665
* 1. Initiate a change locally that is successfully saved by the server, but the client
666666
* drops the server response.

packages/web/src/javascripts/Components/ChallengeModal/ChallengeModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const ChallengeModal: FunctionComponent<Props> = ({ application, mainApplication
9292
setIsProcessing(processingPrompts.length > 0)
9393
setProcessingPrompts(processingPrompts)
9494
/**
95-
* Unfortunately neccessary to wait 50ms so that the above setState call completely
95+
* Unfortunately necessary to wait 50ms so that the above setState call completely
9696
* updates the UI to change processing state, before we enter into UI blocking operation
9797
* (crypto key generation)
9898
*/

packages/web/src/javascripts/Components/SessionsModal/SessionsModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function useSessions(
3737
if (response.data?.error?.message) {
3838
setErrorMessage(response.data?.error.message)
3939
} else {
40-
setErrorMessage('An unknown error occured while loading sessions.')
40+
setErrorMessage('An unknown error occurred while loading sessions.')
4141
}
4242
} else {
4343
const sessions = response.data as SessionListEntry[]
@@ -71,7 +71,7 @@ function useSessions(
7171
setSessions(sessionsBeforeRevoke)
7272
} else if (isErrorResponse(response)) {
7373
setErrorMessage(
74-
getErrorFromErrorResponse(response).message || 'An unknown error occured while revoking the session.',
74+
getErrorFromErrorResponse(response).message || 'An unknown error occurred while revoking the session.',
7575
)
7676

7777
setSessions(sessionsBeforeRevoke)

0 commit comments

Comments
 (0)