File tree 2 files changed +3
-5
lines changed
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export class Storage {
40
40
private initializeStorageCache ( ) : Promise < void > {
41
41
this . storageCache = Object . create ( null ) ;
42
42
43
- const applybackup = ( ) => {
43
+ const applyBackup = ( ) => {
44
44
this . createNotification ( ) ;
45
45
return readJSON ( this . backupPath ) . then ( cache => {
46
46
Object . assign ( this . storageCache , cache ) ;
@@ -56,9 +56,9 @@ export class Storage {
56
56
Object . assign ( this . storageCache , cache ) ;
57
57
return writeJSON ( this . backupPath , cache ) ;
58
58
} )
59
- . catch ( applybackup ) ;
59
+ . catch ( applyBackup ) ;
60
60
} )
61
- . catch ( ( ) => exist ( this . backupPath ) . then ( applybackup ) )
61
+ . catch ( ( ) => exist ( this . backupPath ) . then ( applyBackup ) )
62
62
. catch ( ( ) => writeJSON ( this . storagePath , this . storageCache ) ) ;
63
63
}
64
64
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ import {
12
12
removeProtocol ,
13
13
write ,
14
14
writeJSON ,
15
- readdir ,
16
15
parseElectronUrl ,
17
16
changeLanguage ,
18
17
localeReady
@@ -46,7 +45,6 @@ class Main implements IMain {
46
45
const canOpenElectron = this . makeSingleInstance ( ) ;
47
46
48
47
if ( ! canOpenElectron ) {
49
- console . log ( 'null' ) ;
50
48
return null ;
51
49
}
52
50
You can’t perform that action at this time.
0 commit comments