mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-28 10:19:50 +01:00
Add a return statement to the callback
To prevent a "callback already called".
This commit is contained in:
@@ -24,7 +24,7 @@ var winston = require('winston'),
|
||||
}
|
||||
|
||||
if(!Array.isArray(pids) || !pids.length) {
|
||||
callback(null, false);
|
||||
return callback(null, false);
|
||||
}
|
||||
|
||||
callback(null, parseInt(pids[0], 10) === parseInt(pid, 10));
|
||||
|
||||
Reference in New Issue
Block a user