Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ export class ComposeStorageModule extends ViewModule<ComposeView> {
// re-query the storage, which is now updated
const updatedContact = await ContactStore.getOneWithAllPubkeys(undefined, email);
this.view.errModule.debug(`getUpToDatePubkeys.updatedContact.sortedPubkeys.length(${updatedContact?.sortedPubkeys.length})`);
this.view.errModule.debug(`getUpToDatePubkeys.updatedContact(${updatedContact})`);
this.view.errModule.debug(`getUpToDatePubkeys.updatedContact(${JSON.stringify(updatedContact)})`);
return updatedContact;
};

Expand Down
2 changes: 1 addition & 1 deletion extension/js/common/api/email-provider/gmail/gmail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ export class Gmail extends EmailProviderApi implements EmailProviderInterface {
// Depending on your needs, you might throw an error or handle this scenario differently.
throw new Error('Failed to meet the minimum byte requirement or condition.');
})
// eslint-disable-next-line @typescript-eslint/use-unknown-in-catch-callback-variable

.catch(reject);
});
};
Expand Down
2 changes: 1 addition & 1 deletion extension/js/common/api/shared/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export class Api {
.then(data => {
resolve(data as FetchResult<T, RT>);
})
// eslint-disable-next-line @typescript-eslint/use-unknown-in-catch-callback-variable

.catch(reject);
});
} catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion extension/js/common/browser/browser-extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class BrowserExtension {
try {
bugReport.details = JSON.stringify(details, undefined, 2);
} catch (e) {
bugReport.details_as_string = String(details);
bugReport.details_as_string = String(details as unknown);
bugReport.details_serialization_error = String(e);
}
let result = '';
Expand Down
2 changes: 1 addition & 1 deletion extension/js/common/core/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export class Str {
};

public static prettyPrint = (obj: unknown) => {
return typeof obj === 'object' ? JSON.stringify(obj, undefined, 2).replace(/ /g, '&nbsp;').replace(/\n/g, '<br />') : String(obj);
return typeof obj === 'object' ? JSON.stringify(obj, undefined, 2).replace(/ /g, '&nbsp;').replace(/\n/g, '<br />') : String(obj as unknown);
};

public static normalizeSpaces = (str: string) => {
Expand Down
2 changes: 1 addition & 1 deletion extension/js/common/platform/catch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ export class Catch {
private static formExceptionFromThrown(thrown: unknown, errMsg?: string, url?: string, line?: number, col?: number, isManuallyCalled?: boolean): Error {
let exception: Error;
if (typeof thrown !== 'object') {
exception = new Error(`THROWN_NON_OBJECT[${typeof thrown}]: ${String(thrown)}`);
exception = new Error(`THROWN_NON_OBJECT[${typeof thrown}]: ${String(thrown as unknown)}`);
} else if (errMsg && url && typeof line !== 'undefined' && !col && !thrown && !isManuallyCalled) {
exception = new Error(`LIMITED_ERROR: ${errMsg}`);
} else if (thrown instanceof Error) {
Expand Down
Loading
Loading