Apply consistent-return lint rule

This commit is contained in:
Zaid Abdulla committed 2018-08-25 03:22:48 -07:00
1 parent d7f0b91bf0
commit d85afcd2b5
12 files changed
+264 -231

No files matched your search

+1 -1
View File
@@ -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;