Explorar o código

remove bug in optional argument handling

Brian Gough %!s(int64=11) %!d(string=hai) anos
pai
achega
f237f7c3cc
Modificáronse 1 ficheiros con 0 adicións e 2 borrados
  1. 0 2
      libraries/metrics/mongodb.coffee

+ 0 - 2
libraries/metrics/mongodb.coffee

@@ -23,7 +23,6 @@ module.exports =
 				if (typeof callback == 'undefined')
 				if (typeof callback == 'undefined')
 					callback = options
 					callback = options
 					options = {}
 					options = {}
-					callback = () ->
 
 
 				collection = db_command.collectionName
 				collection = db_command.collectionName
 				if collection.match(/\$cmd$/)
 				if collection.match(/\$cmd$/)
@@ -52,7 +51,6 @@ module.exports =
 				if (typeof callback == 'undefined')
 				if (typeof callback == 'undefined')
 					callback = options
 					callback = options
 					options = {}
 					options = {}
-					callback = () ->
 
 
 				if ns.match(/\$cmd$/)
 				if ns.match(/\$cmd$/)
 					# Ignore noisy command methods like authenticating, ismaster and ping
 					# Ignore noisy command methods like authenticating, ismaster and ping