Skip to content

Commit

Permalink
fix: isVerbose -> verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
tonygaetani committed Jul 11, 2020
1 parent 4ec9059 commit a549b98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/update-content.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = async function (options) {
owner,
repo,
octokit,
isVerbose,
verbose,
isDryRun,
} = options;
const replacementsDir = `${__dirname}/replacements`;
Expand All @@ -27,7 +27,7 @@ module.exports = async function (options) {
}

if (content !== file.content) {
if (isVerbose) {
if (verbose) {
console.log(`✏️ Updating [${path}]`);
}
if (!isDryRun) {
Expand All @@ -41,12 +41,12 @@ module.exports = async function (options) {
);
}
} else {
if (isVerbose) {
if (verbose) {
console.log(`✏️ No changes detected in [${path}]`);
}
}
} catch (e) {
if (isVerbose) {
if (verbose) {
console.log(`✏️ Unable to update [${path}]`);
}
}
Expand Down

0 comments on commit a549b98

Please sign in to comment.