Skip to content

Commit 0e28c2d

Browse files
committed
lint
1 parent 6b70bd9 commit 0e28c2d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/node_url.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void BindingData::PathToFileURL(const FunctionCallbackInfo<Value>& args) {
170170
CHECK(args[2]->IsString());
171171
Utf8Value hostname(isolate, args[2]);
172172
// Ada should validate chars in hostname
173-
if(!out->set_hostname(hostname.ToStringView())) {
173+
if (!out->set_hostname(hostname.ToStringView())) {
174174
return ThrowInvalidURL(realm->env(), input.ToStringView(), std::nullopt);
175175
}
176176
}

test/parallel/test-url-pathtofileurl.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ for (const { path, expected } of testCases) {
226226

227227
// Regression for forbidden chars in UNC Windows
228228
{
229-
assert.throws(() => url.pathToFileURL('\\\\%\\file', {windows : true}), {
230-
code: 'ERR_INVALID_URL',
231-
});
232-
}
229+
assert.throws(() => url.pathToFileURL('\\\\%\\file', { windows: true }), {
230+
code: 'ERR_INVALID_URL',
231+
});
232+
}

0 commit comments

Comments
 (0)