diff --git a/bin/nodeunit b/bin/nodeunit index da79d42ae..9516ab689 100755 --- a/bin/nodeunit +++ b/bin/nodeunit @@ -124,7 +124,5 @@ else { } testrunner.run(files, options, function(err) { - if (err) { - process.exit(1); - } + process.exit(err ? 1 : 0); });