Skip to content

Commit 8e3ba7f

Browse files
committed
fix lint
1 parent e8a0fc0 commit 8e3ba7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/cloud_auth.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ export class CloudAuth implements Authenticator {
2222
}
2323

2424
private isExpired(config) {
25-
const token = config['access-token']
25+
const token = config['access-token'];
2626
const expiry = config.expiry;
2727
if (!token) {
2828
return true;
2929
}
30-
if(!expiry) {
31-
return false
30+
if (!expiry) {
31+
return false;
3232
}
3333

3434
const expiration = Date.parse(expiry);
@@ -70,6 +70,6 @@ export class CloudAuth implements Authenticator {
7070
expiryPathKey = '$' + expiryPathKey.slice(1, -1);
7171

7272
config['access-token'] = jsonpath.query(resultObj, tokenPathKey);
73-
config['expiry'] = jsonpath.query(resultObj, expiryPathKey);
73+
config.expiry = jsonpath.query(resultObj, expiryPathKey);
7474
}
7575
}

0 commit comments

Comments
 (0)