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)); + }); }; /**