Skip to content

Commit 92b6076

Browse files
committed
statSync
1 parent 6bc77a8 commit 92b6076

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

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

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

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

0 commit comments

Comments
 (0)