Skip to content

Commit

Permalink
style: prefer const over let
Browse files Browse the repository at this point in the history
Prefer const over let when the binding is static, in order to comply with an upcoming Standard rule.
  • Loading branch information
LinusU committed Oct 11, 2018
1 parent c17d8b4 commit a7cdcf5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/config.js
Expand Up @@ -41,7 +41,7 @@ module.exports = (store) => {
if (key !== undefined && !_has(config, key)) {
return callback(new Error('Key ' + key + ' does not exist in config'))
}
let value = key !== undefined ? _get(config, key) : config
const value = key !== undefined ? _get(config, key) : config
callback(null, value)
})
},
Expand Down
2 changes: 1 addition & 1 deletion test/node.js
Expand Up @@ -22,7 +22,7 @@ describe('IPFS Repo Tests onNode.js', () => {
return callback(new Error('already locked'))
}

let lockPath = path.join(dir, customLock.lockName)
const lockPath = path.join(dir, customLock.lockName)
fs.writeFileSync(lockPath, '')

callback(null, {
Expand Down

0 comments on commit a7cdcf5

Please sign in to comment.