Skip to content

Commit

Permalink
Use appropriate equality operator in changelog script
Browse files Browse the repository at this point in the history
It is considered good practice to use JavaScript's type-safe strict equality operator === instead of the equality
operator ==. Compliance with this practice is enforced by the project's ESLint configuration, via the "eqeqeq" rule.

The script used to generate the changelog for Arduino IDE's auto-update dialog contained an inappropriate usage of the
equality operator. This caused linting runs to fail:

arduino-ide-extension/scripts/compose-changelog.js
  37:19  error  Expected '===' and instead saw '=='  eqeqeq
  • Loading branch information
per1234 committed Nov 19, 2024
1 parent f232010 commit d377d00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arduino-ide-extension/scripts/compose-changelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
}, '');

const args = process.argv.slice(2);
if (args.length == 0) {
if (args.length === 0) {
console.error('Missing argument to destination file');
process.exit(1);
}
Expand Down

0 comments on commit d377d00

Please sign in to comment.