We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa74ff1 commit bf8e922Copy full SHA for bf8e922
packages/aws-cdk/lib/cli/display-version.ts
@@ -38,8 +38,7 @@ export class VersionCheckTTL {
38
39
public async hasExpired(): Promise<boolean> {
40
try {
41
- // const lastCheckTime = (await fs.stat(this.file)).mtimeMs;
42
- const lastCheckTime = fs.statSync(this.file).mtimeMs;
+ const lastCheckTime = (await fs.stat(this.file)).mtimeMs;
43
const today = new Date().getTime();
44
45
if ((today - lastCheckTime) / 1000 > this.ttlSecs) { // convert ms to sec
0 commit comments