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
-4
@@ -65,10 +65,7 @@ function run(args, callback) {
|
||||
setTimeout(() => {
|
||||
if (id in jobs) {
|
||||
delete jobs[id];
|
||||
return callback(null, {
|
||||
code: "timeout",
|
||||
message: "Extension timed out"
|
||||
});
|
||||
callback(null, { code: "timeout", message: "Extension timed out" });
|
||||
}
|
||||
}, TIMEOUT);
|
||||
|
||||
|
||||
Reference in new issue
Block a user