Skip to content

Commit 5cdd5c1

Browse files
committed
chore: fix comments
1 parent 9b9de46 commit 5cdd5c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/controllers/migrate-controller.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)