lib: update indentation of ternaries · nodejs/node@6361565 · GitHub
Skip to content

Commit 6361565

Browse files
Trottaddaleax
authored andcommitted
lib: update indentation of ternaries
In preparation for stricter indentation linting and to increase code clarity, update indentation for ternaries in lib. PR-URL: #14247 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 7a116d4 commit 6361565

4 files changed

Lines changed: 11 additions & 10 deletions

File tree

lib/events.js

Lines changed: 2 additions & 2 deletions

lib/internal/freelist.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ class FreeList {
99
}
1010

1111
alloc() {
12-
return this.list.length ? this.list.pop() :
13-
this.ctor.apply(this, arguments);
12+
return this.list.length ?
13+
this.list.pop() :
14+
this.ctor.apply(this, arguments);
1415
}
1516

1617
free(obj) {

lib/net.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function createHandle(fd) {
6464

6565
function getNewAsyncId(handle) {
6666
return (!handle || typeof handle.getAsyncId !== 'function') ?
67-
newUid() : handle.getAsyncId();
67+
newUid() : handle.getAsyncId();
6868
}
6969

7070

lib/url.js

Lines changed: 5 additions & 5 deletions

0 commit comments

Comments
 (0)