Skip to content

Commit 97930c9

Browse files
committedNov 29, 2017
chore: remove unneded if block
the `handler` is already protected at all places where it is called. If `callback` is not set, it’s wrapped in a promise and a callback gets passed in
1 parent a2ec929 commit 97930c9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎lib/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -835,9 +835,7 @@ var Client = module.exports = function (config) {
835835
}
836836
})
837837

838-
if (callback) {
839-
callback(null, ret)
840-
}
838+
callback(null, ret)
841839
})
842840
}
843841
}).call(Client.prototype)

0 commit comments

Comments
 (0)
Please sign in to comment.