mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 17:19:37 +02:00
Don't return early in case where last arg is not a function
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user