Skip to content

Commit 4645325

Browse files
committed
lint: remove semicolons
1 parent a7cc108 commit 4645325

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"rules": {
33
"eol-last": "error",
44
"indent": ["error", 2, { "SwitchCase": 1 }],
5-
"no-trailing-spaces": "error"
5+
"no-trailing-spaces": "error",
6+
"semi": ["error", "never"]
67
}
78
}

index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Router.prototype.handle = function handle(req, res, callback) {
255255
continue
256256
}
257257

258-
var method = req.method;
258+
var method = req.method
259259
var has_method = route._handles_method(method)
260260

261261
// build up automatic options response
@@ -562,9 +562,9 @@ function generateOptionsResponder(res, methods) {
562562

563563
function getPathname(req) {
564564
try {
565-
return parseUrl(req).pathname;
565+
return parseUrl(req).pathname
566566
} catch (err) {
567-
return undefined;
567+
return undefined
568568
}
569569
}
570570

@@ -601,9 +601,9 @@ function getProtohost(url) {
601601

602602
function matchLayer(layer, path) {
603603
try {
604-
return layer.match(path);
604+
return layer.match(path)
605605
} catch (err) {
606-
return err;
606+
return err
607607
}
608608
}
609609

0 commit comments

Comments
 (0)