Skip to content

Commit e47bec4

Browse files
committed
CLIENT-1334: fix functions name
1 parent 9aed562 commit e47bec4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

electron/Storage.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export class Storage {
4040
private initializeStorageCache(): Promise<void> {
4141
this.storageCache = Object.create(null);
4242

43-
const applybackup = () => {
43+
const applyBackup = () => {
4444
this.createNotification();
4545
return readJSON(this.backupPath).then(cache => {
4646
Object.assign(this.storageCache, cache);
@@ -56,9 +56,9 @@ export class Storage {
5656
Object.assign(this.storageCache, cache);
5757
return writeJSON(this.backupPath, cache);
5858
})
59-
.catch(applybackup);
59+
.catch(applyBackup);
6060
})
61-
.catch(() => exist(this.backupPath).then(applybackup))
61+
.catch(() => exist(this.backupPath).then(applyBackup))
6262
.catch(() => writeJSON(this.storagePath, this.storageCache));
6363
}
6464

electron/main.ts

-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
removeProtocol,
1313
write,
1414
writeJSON,
15-
readdir,
1615
parseElectronUrl,
1716
changeLanguage,
1817
localeReady
@@ -46,7 +45,6 @@ class Main implements IMain {
4645
const canOpenElectron = this.makeSingleInstance();
4746

4847
if (!canOpenElectron) {
49-
console.log('null');
5048
return null;
5149
}
5250

0 commit comments

Comments
 (0)