eslint: enforce use of const when variable not modified
This commit is contained in:
@@ -33,7 +33,7 @@ describe('recalculate', function () {
|
||||
return this._storage.has(element) && this._storage.get(element).has(key);
|
||||
},
|
||||
remove: function (element, key) {
|
||||
let ret = this._storage.get(element).delete(key);
|
||||
const ret = this._storage.get(element).delete(key);
|
||||
if (!this._storage.get(element).size === 0) {
|
||||
this._storage.delete(element);
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ describe('select', function () {
|
||||
return this._storage.has(element) && this._storage.get(element).has(key);
|
||||
},
|
||||
remove: function (element, key) {
|
||||
let ret = this._storage.get(element).delete(key);
|
||||
const ret = this._storage.get(element).delete(key);
|
||||
if (!this._storage.get(element).size === 0) {
|
||||
this._storage.delete(element);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user