From deecff980f2001f8d6b85c3e896e5d8876e80e8c Mon Sep 17 00:00:00 2001 From: Pampattitude Date: Tue, 17 Mar 2015 14:53:36 +0100 Subject: [PATCH] /lib/common/ & /lib/pubsub/: cleaned a duplicate line and a useless .bind(this) --- lib/common/util.js | 1 - lib/pubsub/index.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/common/util.js b/lib/common/util.js index 8a55b69b732..1339fb12d71 100644 --- a/lib/common/util.js +++ b/lib/common/util.js @@ -331,7 +331,6 @@ function makeWritableStream(dup, options, onComplete) { options = options || {}; options.metadata = options.metadata || {}; - onComplete = onComplete || noop; var boundary = uuid.v4(); diff --git a/lib/pubsub/index.js b/lib/pubsub/index.js index 0252f0a8529..c4b0ef160f3 100644 --- a/lib/pubsub/index.js +++ b/lib/pubsub/index.js @@ -187,7 +187,7 @@ PubSub.prototype.createTopic = function(name, callback) { return; } callback(null, topic); - }.bind(this)); + }); }; /**