Просмотр исходного кода

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

Shane Kilkelly 9 лет назад
Родитель
Сommit
fbe19cd97d
1 измененных файлов с 0 добавлено и 1 удалено
  1. 0 1
      libraries/metrics/timeAsyncMethod.coffee

+ 0 - 1
libraries/metrics/timeAsyncMethod.coffee

@@ -14,7 +14,6 @@ module.exports = (obj, methodName, prefix, logger) ->
 
 
 		if !callback? || typeof callback != 'function'
 		if !callback? || typeof callback != 'function'
 			logger.log "[Metrics] expected wrapped method '#{methodName}' to be invoked with a callback"
 			logger.log "[Metrics] expected wrapped method '#{methodName}' to be invoked with a callback"
-			return
 
 
 		timer = new metrics.Timer(key)
 		timer = new metrics.Timer(key)