Don't return early in case where last arg is not a function

This commit is contained in:
Shane Kilkelly 2017-03-20 16:25:10 +00:00
parent 31235beee5
commit fbe19cd97d

View file

@ -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)