Skip to content

Commit

Permalink
Fix bucket manager
Browse files Browse the repository at this point in the history
  • Loading branch information
veacks committed Oct 20, 2014
1 parent d9e908c commit 2a2b8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mock/bucketmgr.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BucketManager.prototype.getDesignDocuments = function(callback) {
BucketManager.prototype.insertDesignDocument = function(name, data, callback) {
var self = this;
this.getDesignDocument(name, function(err, res) {
if (!err) {
if (err !== null || undefined) {
return callback(new Error('design document already exists'), null);
}
self.upsertDesignDocument(name, data, callback);
Expand Down

0 comments on commit 2a2b8ad

Please sign in to comment.