From 5773438913ffff104ae1f4907e35f925299090d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Wed, 20 May 2015 11:29:08 +0200 Subject: [PATCH] test: fix jslint error PR-URL: https://github.com/nodejs/io.js/pull/1743 Fixes: https://github.com/nodejs/io.js/issues/1742 Reviewed-By: Roman Reiss --- test/parallel/test-sync-io-option.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-sync-io-option.js b/test/parallel/test-sync-io-option.js index 2dc0bf4cc1fb96..be817c460f67d4 100644 --- a/test/parallel/test-sync-io-option.js +++ b/test/parallel/test-sync-io-option.js @@ -33,10 +33,11 @@ if (process.argv[2] === 'child') { // Prints 4 WARNINGS for --trace-sync-io. 1 for each sync call // inside readFileSync assert.equal(cntr1, 4); - } else if (execArgv[0] === ' ') + } else if (execArgv[0] === ' ') { assert.equal(cntr1, 0); - else + } else { throw new Error('UNREACHABLE'); + } if (flags.length > 0) setImmediate(runTest, flags);