From 9e5778694c04d4a9cef44433269a9db171b0a248 Mon Sep 17 00:00:00 2001 From: Jacob Heun Date: Thu, 1 Nov 2018 14:58:17 +0100 Subject: [PATCH] fix: dont setimmediate when its not needed --- src/hmac/index.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hmac/index.js b/src/hmac/index.js index ad72398..095222c 100644 --- a/src/hmac/index.js +++ b/src/hmac/index.js @@ -10,9 +10,7 @@ exports.create = function (hash, secret, callback) { hmac.update(data) - setImmediate(() => { - cb(null, hmac.digest()) - }) + cb(null, hmac.digest()) }, length: lengths[hash] }