1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-13 23:03:32 +00:00

Linter updates and fixes (#1604)

This commit is contained in:
Matt Gibson
2021-02-10 09:40:15 -06:00
committed by GitHub
parent dae739bc17
commit 1868b99d17
17 changed files with 73 additions and 56 deletions

View File

@@ -158,7 +158,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
type: type,
dialogId: dialogId,
});
return new Promise<boolean>((resolve) => {
return new Promise<boolean>(resolve => {
this.showDialogResolves.set(dialogId, { resolve: resolve, date: new Date() });
});
}
@@ -190,7 +190,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
}
const clearing = options ? !!options.clearing : false;
const clearMs: number = options && options.clearMs ? options.clearMs : null;
if (this.isSafari()) {
SafariApp.sendMessageToApp('copyToClipboard', text).then(() => {
if (!clearing && this.clipboardWriteCallback != null) {
@@ -285,7 +285,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
deleteIds.push(key);
}
});
deleteIds.forEach((id) => {
deleteIds.forEach(id => {
this.showDialogResolves.delete(id);
});
}