Skip to content

Commit 1cbd5a0

Browse files
authored
Merge pull request #276 from appcelerator/APIGOV-32125
Engage CLI - Migrate & Refactor Results Rendering Functionality
2 parents 1e2676e + abd2870 commit 1cbd5a0

13 files changed

Lines changed: 2873 additions & 1736 deletions

package-lock.json

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"cli-table3": "^0.6.5",
3535
"dayjs": "^1.11.19",
3636
"debug": "^4.4.3",
37+
"easy-table": "^1.2.0",
3738
"fastest-levenshtein": "^1.0.16",
3839
"got": "^14.6.2",
3940
"http-proxy-agent": "^7.0.2",

src/lib/cache/CacheController.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ class CacheControllerClass implements Cache {
126126
< CACHE_FILE_TTL_MILLISECONDS
127127
) {
128128
for (const [ key, val ] of Object.entries(storedCache.data)) {
129-
if (storedCache.data.hasOwnProperty(key)) {
129+
if (Object.prototype.hasOwnProperty.call(storedCache.data, key)) {
130130
this.cache.set(key, val);
131131
}
132132
}
@@ -138,9 +138,8 @@ class CacheControllerClass implements Cache {
138138
}
139139
} catch (e) {
140140
log('cannot read cache from the file', e);
141-
} finally {
142-
return this;
143141
}
142+
return this;
144143
}
145144

146145
/**
@@ -169,9 +168,8 @@ class CacheControllerClass implements Cache {
169168
writeToFile(this.cacheFilePath, JSON.stringify(dataToStore));
170169
} catch (e) {
171170
log('cannot write cache to the file', e);
172-
} finally {
173-
return this;
174171
}
172+
return this;
175173
}
176174
}
177175

0 commit comments

Comments
 (0)