Enable prefer-const lint rule (#3202)
This commit is contained in:
committed by
Florent Vilmart
parent
a6c988176e
commit
ca286b7108
@@ -10,7 +10,7 @@ export class InMemoryCache {
|
||||
}
|
||||
|
||||
get(key) {
|
||||
let record = this.cache[key];
|
||||
const record = this.cache[key];
|
||||
if (record == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ export class InMemoryCacheAdapter {
|
||||
|
||||
get(key) {
|
||||
return new Promise((resolve) => {
|
||||
let record = this.cache.get(key);
|
||||
const record = this.cache.get(key);
|
||||
if (record == null) {
|
||||
return resolve(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user