Skip to content

Commit

Permalink
fix(wisdom) grizzly: callback called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Jun 8, 2015
1 parent 133025d commit e37c203
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/wisdom.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,13 @@
};

grizzly(null, data, function(error) {
if (!error)
if (!error) {
emitter.emit('data', 'release: ok');
else {
callback();
} else {
console.log('Error releasing on github. Trying again.');
publish(callback);
}

callback(error);
});
},

Expand Down

0 comments on commit e37c203

Please sign in to comment.