mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Don't return early in case where last arg is not a function
This commit is contained in:
parent
31235beee5
commit
fbe19cd97d
1 changed files with 0 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue