Skip to content

Commit 2579699

Browse files
committed
Use appropriate equality operator in changelog script
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
1 parent ecc3995 commit 2579699

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arduino-ide-extension/scripts/compose-changelog.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}, '');
3535

3636
const args = process.argv.slice(2);
37-
if (args.length == 0) {
37+
if (args.length === 0) {
3838
console.error('Missing argument to destination file');
3939
process.exit(1);
4040
}

0 commit comments

Comments
 (0)