Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d377d00

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 f232010 commit d377d00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /