Skip to content

Commit df891c3

Browse files
committed
Fix style
1 parent f35a829 commit df891c3

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/node_child_process.cc

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -286,26 +286,23 @@ int ChildProcess::Spawn(const char *file,
286286
close(stdin_pipe[0]);
287287
stdio_fds[0] = stdin_pipe[1];
288288
SetNonBlocking(stdin_pipe[1]);
289-
}
290-
else {
289+
} else {
291290
stdio_fds[0] = custom_fds[0];
292291
}
293292

294293
if (custom_fds[1] == -1) {
295294
close(stdout_pipe[1]);
296295
stdio_fds[1] = stdout_pipe[0];
297296
SetNonBlocking(stdout_pipe[0]);
298-
}
299-
else {
297+
} else {
300298
stdio_fds[1] = custom_fds[1];
301299
}
302300

303301
if (custom_fds[2] == -1) {
304302
close(stderr_pipe[1]);
305303
stdio_fds[2] = stderr_pipe[0];
306304
SetNonBlocking(stderr_pipe[0]);
307-
}
308-
else {
305+
} else {
309306
stdio_fds[2] = custom_fds[2];
310307
}
311308

0 commit comments

Comments
 (0)