Skip to content

Commit

Permalink
Put saver: fix missing "else"
Browse files Browse the repository at this point in the history
Thanks @Arlen22
  • Loading branch information
Jermolene committed Apr 8, 2018
1 parent ce7cb02 commit df1f7e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/savers/put.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ PutSaver.prototype.save = function(text, method, callback) {
callback: function(err, data, xhr) {
if(err) {
callback(err);
} if(xhr.status === 200 || xhr.status === 201) {
} else if(xhr.status === 200 || xhr.status === 201) {
self.etag = xhr.getResponseHeader("ETag");
callback(null); // success
} else if(xhr.status === 412) { // edit conflict
Expand Down

0 comments on commit df1f7e9

Please sign in to comment.