mirror of
https://github.com/nodejs/node.git
synced 2026-10-14 10:26:26 -04:00
tools: enforce linebreak after ternary operators
This is to be consistent with the other operators and helps understanding the context when the code is grepped. PR-URL: https://github.com/nodejs/node/pull/10213 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Teddy Katz <teddy.katz@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
1 parent
9fd79c9f5b
commit
966e5cfb81
12 files changed
+42
-43
No files matched your search
@@ -108,9 +108,9 @@ module.exports = {
|
||||
},
|
||||
|
||||
create(context) {
|
||||
const overrideSet = new Set(context.options.length
|
||||
? context.options[0].override || []
|
||||
: []);
|
||||
const overrideSet = new Set(context.options.length ?
|
||||
context.options[0].override || [] :
|
||||
[]);
|
||||
|
||||
/**
|
||||
* Reports a node
|
||||
|
||||
Reference in new issue
Block a user