Skip to content

Commit

Permalink
test: remove else block
Browse files Browse the repository at this point in the history
Else block removed as the `throw` in the preceding block makes it
redundant

Refs: nodejs#19594
  • Loading branch information
dsinecos committed Apr 10, 2018
1 parent 9e4b0dd commit 2129edf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/parallel/test-process-uid-gid.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ try {
} catch (err) {
if (err.message !== 'setgid group id does not exist') {
throw err;
} else {
process.setgid('nogroup');
}
process.setgid('nogroup');
}
const newgid = process.getgid();
assert.notStrictEqual(newgid, oldgid);
Expand Down

0 comments on commit 2129edf

Please sign in to comment.