mirror of https://github.com/lukechilds/node.git
Browse Source
Pointed out by Coverity. Introduced in commitsv6.x3546383c
("process_wrap: avoid leaking memory when throwing due to invalid arguments") andfa4eb47c
("bindings: add spawn_sync bindings"). The return statements inside the if blocks were dead code because their guard conditions always evaluated to false. Remove them. PR-URL: https://github.com/nodejs/node/pull/7374 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Ben Noordhuis
9 years ago
committed by
Jeremiah Senkpiel
3 changed files with 11 additions and 37 deletions
Loading…
Reference in new issue