From f237f7c3ccbf1e0934c0b3e68647dbb62c76f426 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Tue, 18 Aug 2015 11:23:10 +0100 Subject: [PATCH] remove bug in optional argument handling --- libraries/metrics/mongodb.coffee | 2 -- 1 file changed, 2 deletions(-) diff --git a/libraries/metrics/mongodb.coffee b/libraries/metrics/mongodb.coffee index 4358985101..ce1ca71385 100644 --- a/libraries/metrics/mongodb.coffee +++ b/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