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}`;
232232 private async getCachedShouldMigrate ( projectDir : string , platform : string ) : Promise < boolean > {
233233 let cachedShouldMigrateValue = null ;
234234
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 ) {
238238 cachedShouldMigrateValue = false ;
239239 }
240240
241241 return cachedShouldMigrateValue ;
242242 }
243243
244244 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 ) ;
247247 }
248248
249249 private async getPachageJsonHash ( projectDir : string ) {
You can’t perform that action at this time.
0 commit comments