Skip to content

Commit

Permalink
Added curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
sgress454 committed Jul 8, 2014
1 parent dc54e14 commit 8dfffd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/multipartupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,8 +349,9 @@ MultiPartUpload.prototype._uploadPart = function(part, callback) {
if (part && part.alreadyCB) {return;}
var result = {part: part.id, message: err};
mpu.emit('failed', result, written);
if (--part.triesLeft)
if (--part.triesLeft) {
return MultiPartUpload.prototype._uploadPart.call(mpu, part, callback);
}
else {
// Make sure the callback is only called once
part.alreadyCB = true;
Expand Down

0 comments on commit 8dfffd0

Please sign in to comment.