Skip to content

Commit

Permalink
Handle non-error case.
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyll committed Jul 29, 2014
1 parent 9095e6f commit 29ac7a8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions regression/pubsub.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,7 @@ describe('Subscription', function() {
sub.on('message', function(msg) {
sub.ack(msg.ackId, done);
});
sub.pull({}, function(err) {
if (err) {
done(err);
return;
}
});
sub.pull({}, done);
});
});

Expand Down

0 comments on commit 29ac7a8

Please sign in to comment.