diff --git a/index.js b/index.js index 5f89c59c1..9ee458584 100755 --- a/index.js +++ b/index.js @@ -9,7 +9,7 @@ const tag = require('./lib/lifecycles/tag') const { resolveUpdaterObjectFromArgument } = require('./lib/updaters') module.exports = function standardVersion (argv) { - let defaults = require('./defaults') + const defaults = require('./defaults') /** * `--message` (`-m`) support will be removed in the next major version. */ diff --git a/lib/updaters/types/json.js b/lib/updaters/types/json.js index 5e6924cd1..4494aab76 100644 --- a/lib/updaters/types/json.js +++ b/lib/updaters/types/json.js @@ -8,8 +8,8 @@ module.exports.readVersion = function (contents) { module.exports.writeVersion = function (contents, version) { const json = JSON.parse(contents) - let indent = detectIndent(contents).indent - let newline = detectNewline(contents) + const indent = detectIndent(contents).indent + const newline = detectNewline(contents) json.version = version return stringifyPackage(json, indent, newline) }