Skip to content

Commit f9ebe7e

Browse files
committed
add void to callback
1 parent b8e13b2 commit f9ebe7e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function ret(callback) {
241241
*/
242242
return function() {
243243
const args = [ ...arguments ];
244-
if (!promisify) { return callback.apply(this, args); }
244+
if (!promisify) { return void callback.apply(this, args); }
245245

246246
return new Promise((resolve, reject) => {
247247
const err = args.shift();

0 commit comments

Comments
 (0)