Skip to content

Commit 2129edf

Browse files
committed
test: remove else block
Else block removed as the `throw` in the preceding block makes it redundant Refs: #19594
1 parent 9e4b0dd commit 2129edf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/parallel/test-process-uid-gid.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,8 @@ try {
6666
} catch (err) {
6767
if (err.message !== 'setgid group id does not exist') {
6868
throw err;
69-
} else {
70-
process.setgid('nogroup');
7169
}
70+
process.setgid('nogroup');
7271
}
7372
const newgid = process.getgid();
7473
assert.notStrictEqual(newgid, oldgid);

0 commit comments

Comments
 (0)