File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -232,18 +232,18 @@ Running this command will ${MigrateController.COMMON_MIGRATE_MESSAGE}`;
232
232
private async getCachedShouldMigrate ( projectDir : string , platform : string ) : Promise < boolean > {
233
233
let cachedShouldMigrateValue = null ;
234
234
235
- const cashedHash = await this . $jsonFileSettingsService . getSettingValue ( getHash ( `${ projectDir } ${ platform . toLowerCase ( ) } ` ) ) ;
236
- const packageJsonShasum = await this . getPachageJsonHash ( projectDir ) ;
237
- if ( cashedHash === packageJsonShasum ) {
235
+ const cachedHash = await this . $jsonFileSettingsService . getSettingValue ( getHash ( `${ projectDir } ${ platform . toLowerCase ( ) } ` ) ) ;
236
+ const packageJsonHash = await this . getPachageJsonHash ( projectDir ) ;
237
+ if ( cachedHash === packageJsonHash ) {
238
238
cachedShouldMigrateValue = false ;
239
239
}
240
240
241
241
return cachedShouldMigrateValue ;
242
242
}
243
243
244
244
private async setCachedShouldMigrate ( projectDir : string , platform : string ) : Promise < void > {
245
- const packageJsonShasum = await this . getPachageJsonHash ( projectDir ) ;
246
- await this . $jsonFileSettingsService . saveSetting ( getHash ( `${ projectDir } ${ platform . toLowerCase ( ) } ` ) , packageJsonShasum ) ;
245
+ const packageJsonHash = await this . getPachageJsonHash ( projectDir ) ;
246
+ await this . $jsonFileSettingsService . saveSetting ( getHash ( `${ projectDir } ${ platform . toLowerCase ( ) } ` ) , packageJsonHash ) ;
247
247
}
248
248
249
249
private async getPachageJsonHash ( projectDir : string ) {
You can’t perform that action at this time.
0 commit comments