Эх сурвалжийг харах

remove bug in optional argument handling

Brian Gough 11 жил өмнө
parent
commit
f237f7c3cc

+ 0 - 2
libraries/metrics/mongodb.coffee

@@ -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