mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 01:29:35 +02:00
Return callback with guard
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user