Skip to content

Commit

Permalink
lint: remove semicolons
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Jul 6, 2018
1 parent a7cc108 commit 4645325
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"rules": {
"eol-last": "error",
"indent": ["error", 2, { "SwitchCase": 1 }],
"no-trailing-spaces": "error"
"no-trailing-spaces": "error",
"semi": ["error", "never"]
}
}
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ Router.prototype.handle = function handle(req, res, callback) {
continue
}

var method = req.method;
var method = req.method
var has_method = route._handles_method(method)

// build up automatic options response
Expand Down Expand Up @@ -562,9 +562,9 @@ function generateOptionsResponder(res, methods) {

function getPathname(req) {
try {
return parseUrl(req).pathname;
return parseUrl(req).pathname
} catch (err) {
return undefined;
return undefined
}
}

Expand Down Expand Up @@ -601,9 +601,9 @@ function getProtohost(url) {

function matchLayer(layer, path) {
try {
return layer.match(path);
return layer.match(path)
} catch (err) {
return err;
return err
}
}

Expand Down

0 comments on commit 4645325

Please sign in to comment.