diff --git a/src/config.js b/src/config.js index 26367438..15f00ec3 100644 --- a/src/config.js +++ b/src/config.js @@ -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) }) }, diff --git a/test/node.js b/test/node.js index b560fdab..62451c1d 100644 --- a/test/node.js +++ b/test/node.js @@ -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, {