Skip to content

Commit abf0e20

Browse files
authored
Convert onStats arrow function to class function
1 parent 9d89de5 commit abf0e20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ class Server extends EventEmitter {
151151
}
152152
}
153153

154-
onStats = (req, res) => {
154+
onStats (req, res) {
155155
if (res.headersSent) return
156156

157157
const infoHashes = Object.keys(this.torrents)

0 commit comments

Comments
 (0)