mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
remove bug in optional argument handling
This commit is contained in:
parent
27c382416a
commit
f237f7c3cc
1 changed files with 0 additions and 2 deletions
|
@ -23,7 +23,6 @@ module.exports =
|
|||
if (typeof callback == 'undefined')
|
||||
callback = options
|
||||
options = {}
|
||||
callback = () ->
|
||||
|
||||
collection = db_command.collectionName
|
||||
if collection.match(/\$cmd$/)
|
||||
|
@ -52,7 +51,6 @@ module.exports =
|
|||
if (typeof callback == 'undefined')
|
||||
callback = options
|
||||
options = {}
|
||||
callback = () ->
|
||||
|
||||
if ns.match(/\$cmd$/)
|
||||
# Ignore noisy command methods like authenticating, ismaster and ping
|
||||
|
|
Loading…
Reference in a new issue