Skip to content

Commit

Permalink
Use logical assignment operators
Browse files Browse the repository at this point in the history
Now that we require a recent Node.js.
  • Loading branch information
domenic committed Nov 5, 2023
1 parent 46a71c4 commit 15bb65f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@
"extends": "@domenic",
"env": {
"node": true
},
"rules": {
"logical-assignment-operators": "off"
}
}
6 changes: 3 additions & 3 deletions test/unicode.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ for (const l of lines) {
toASCIITStatus
] = splitted.map(c => normalize(c.trim()));

toUnicode = toUnicode || source;
toUnicode ||= source;
// We don't care about X* error codes since they are just bugs in a
// previous version of the test suite.
if (toUnicodeStatus === "[]" || toUnicodeStatus === "[X4_2]") {
toUnicodeStatus = "";
}
toASCIIN = toASCIIN || toUnicode;
toASCIIN ||= toUnicode;
if (toASCIINStatus === "[]") {
toASCIINStatus = "";
}
toASCIIT = toASCIIT || toASCIIN;
toASCIIT ||= toASCIIN;
if (toASCIITStatus === "[]") {
toASCIITStatus = "";
}
Expand Down

0 comments on commit 15bb65f

Please sign in to comment.