From fbe19cd97d9677b7714d17eaa2186b7ef3b5f8ae Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Mon, 20 Mar 2017 16:25:10 +0000 Subject: [PATCH] Don't return early in case where last arg is not a function --- libraries/metrics/timeAsyncMethod.coffee | 1 - 1 file changed, 1 deletion(-) diff --git a/libraries/metrics/timeAsyncMethod.coffee b/libraries/metrics/timeAsyncMethod.coffee index d980ce48a0..b90e2b8971 100644 --- a/libraries/metrics/timeAsyncMethod.coffee +++ b/libraries/metrics/timeAsyncMethod.coffee @@ -14,7 +14,6 @@ module.exports = (obj, methodName, prefix, logger) -> if !callback? || typeof callback != 'function' logger.log "[Metrics] expected wrapped method '#{methodName}' to be invoked with a callback" - return timer = new metrics.Timer(key)