Apply consistent-return lint rule
This commit is contained in:
1 parent
d7f0b91bf0
commit
d85afcd2b5
12 files changed
+264
-231
No files matched your search
+1
-1
@@ -43,7 +43,7 @@ const { listener, onConnection } = require(`./${service}`);
|
||||
let server;
|
||||
|
||||
function closeServer(timeout, callback) {
|
||||
if (!server) return callback();
|
||||
if (!server) return void callback();
|
||||
|
||||
setTimeout(() => {
|
||||
if (!callback) return;
|
||||
|
||||
Reference in new issue
Block a user