test: fix linter error in whatwg-url-parsing

test-whatwg-url-parsing file violates the linter rule changes in
https://github.com/nodejs/node/pull/10213. This patch makes the linter
happy.

PR-URL: https://github.com/nodejs/node/pull/10421

Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Sakthipriyan Vairamani (thefourtheye) 2016-12-23 11:02:49 +05:30
parent 966e5cfb81
commit 5acfbb0f25

View File

@ -136,9 +136,7 @@ for (const test of tests) {
}
for (const test of allTests) {
const url = test.url
? new URL(test.url)
: new URL(test.input, test.base);
const url = test.url ? new URL(test.url) : new URL(test.input, test.base);
for (const showHidden of [true, false]) {
const res = url.inspect(null, {