We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4322309 commit 99c0119Copy full SHA for 99c0119
src/gitlabcache.ts
@@ -11,13 +11,11 @@ export class GitlabCache {
11
private ttl: number;
12
private storage: NodeCache;
13
14
- public static get DEFAULT_TTL() {
15
- return 300;
16
- }
+ public static readonly DEFAULT_TTL = 300;
17
18
private static _generateKeyHash(username: string, password: string) {
19
const sha = Crypto.createHash('sha256');
20
- sha.update(JSON.stringify({ username: username, password: password }));
+ sha.update(JSON.stringify({ username, password }));
21
return sha.digest('hex');
22
}
23
0 commit comments