Skip to content

Commit bf8e922

Browse files
committed
Revert "statSync"
This reverts commit 92b6076.
1 parent fa74ff1 commit bf8e922

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/aws-cdk/lib/cli/display-version.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ export class VersionCheckTTL {
3838

3939
public async hasExpired(): Promise<boolean> {
4040
try {
41-
// const lastCheckTime = (await fs.stat(this.file)).mtimeMs;
42-
const lastCheckTime = fs.statSync(this.file).mtimeMs;
41+
const lastCheckTime = (await fs.stat(this.file)).mtimeMs;
4342
const today = new Date().getTime();
4443

4544
if ((today - lastCheckTime) / 1000 > this.ttlSecs) { // convert ms to sec

0 commit comments

Comments
 (0)