Skip to content

Commit

Permalink
chore: fix changelog rewrite to be node 10 compatible (#14582)
Browse files Browse the repository at this point in the history
Node 10 Javascript doesn't support the `??` operator; replacing with `||`.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
njlynch authored May 7, 2021
1 parent 4010b5b commit 998fe72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/changelog-experimental-fix.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ function repoRoot() {
}

const defaultChangelogPath = path.join(repoRoot(), 'CHANGELOG.v2.md');
rewriteChangelog(process.argv[2] ?? defaultChangelogPath);
rewriteChangelog(process.argv[2] || defaultChangelogPath);

0 comments on commit 998fe72

Please sign in to comment.