Skip to content

Commit bc1d699

Browse files
authored
Fix linter rules
1 parent abf0e20 commit bc1d699

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ class Server extends EventEmitter {
136136
}
137137

138138
// Http handler for '/stats' route
139-
this.http.on('request', this.onStats);
139+
this.http.on('request', this.onStats)
140140
}
141141

142142
let num = !!this.http + !!this.udp4 + !!this.udp6
@@ -364,8 +364,8 @@ class Server extends EventEmitter {
364364
onHttpRequest (req, res, opts = {}) {
365365
opts.trustProxy = opts.trustProxy || this._trustProxy
366366

367-
if (req.originalUrl === "/stats" || req.originalUrl === "/stats.json") {
368-
return this.onStats(req, res);
367+
if (req.originalUrl === '/stats' || req.originalUrl === '/stats.json') {
368+
return this.onStats(req, res)
369369
}
370370

371371
let params

0 commit comments

Comments
 (0)