mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-30 18:50:47 +00:00
Return callback with guard
This commit is contained in:
parent
5d8e201732
commit
937bf82a2f
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ module.exports = Router =
|
|||
# Called with 4 args, things are as expected
|
||||
else
|
||||
logger.error { arguments: arguments }, "unexpected arguments"
|
||||
return # ????
|
||||
return callback?(new Error("unexpected arguments"))
|
||||
|
||||
WebsocketController.joinDoc client, doc_id, fromVersion, options, (err, args...) ->
|
||||
if err?
|
||||
|
|
Loading…
Reference in a new issue