Skip to content

Commit

Permalink
fix: check for changes array during author step (#44)
Browse files Browse the repository at this point in the history
There is already a try/catch block so the effective result is the same,
but at least it's an if statement now instead of an ignored exception.
  • Loading branch information
wraithgar authored Jul 5, 2023
1 parent 94d98ba commit 60a09da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ const normalize = async (pkg, { strict, steps, root, changes, allowLegacyCase })
.map(line => line.replace(/^\s*#.*$/, '').trim())
.filter(line => line)
data.contributors = authors
changes.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')
changes?.push('"contributors" was auto-populated with the contents of the "AUTHORS" file')
} catch {
// do nothing
}
Expand Down

0 comments on commit 60a09da

Please sign in to comment.