Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix linting error
  • Loading branch information
TimothyGu committed Dec 4, 2016
commit 5d73072519d6f5cc8396948e8b890dae944cd7d9
6 changes: 4 additions & 2 deletions lib/internal/url.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,8 @@ class URLSearchParams {
throw new TypeError('Value of `this` is not a URLSearchParams');
}
if (arguments.length < 2) {
throw new TypeError('Both `name` and `value` arguments need to be specified');
throw new TypeError(
'Both `name` and `value` arguments need to be specified');
}

const obj = this[searchParams];
Expand Down Expand Up @@ -602,7 +603,8 @@ class URLSearchParams {
throw new TypeError('Value of `this` is not a URLSearchParams');
}
if (arguments.length < 2) {
throw new TypeError('Both `name` and `value` arguments need to be specified');
throw new TypeError(
'Both `name` and `value` arguments need to be specified');
}

const obj = this[searchParams];
Expand Down