refactor: add prefer-const to .eslintrc + fix errors (#14880)
This commit is contained in:
parent
07161a8452
commit
3ad3ade828
47 changed files with 239 additions and 238 deletions
|
@ -91,7 +91,7 @@ const getStorageManager = (storageType, extensionId) => {
|
|||
// eslint-disable-next-line standard/no-callback-literal
|
||||
if (keys.length === 0) return callback({})
|
||||
|
||||
let items = {}
|
||||
const items = {}
|
||||
keys.forEach(function (key) {
|
||||
let value = storage[key]
|
||||
if (value == null) value = defaults[key]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue