-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support putObject to upload an empty file. #658
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please fix the PR title say something like
fix putObject to upload an empty file
or
Support putObject to upload an empty file
@harshavardhana changed the title as mentioned. |
@shruthied Travis and Appveyor failed. Please take a look at the failures and fix them. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was able to upload empty and nonempty files successfully, LGTM.
@kannappanr fixed all the failures. Checks have been passed. |
src/main/object-uploader.js
Outdated
else { | ||
if (this.id === null) { | ||
return | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you don't need else statement here @shruthied because you have return statement at the end of if block above.
i.e you can do it like :
if (this.emptyStream) {
....
return
}
if (this.id == null) {
return
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed the else statement as mentioned @krishnasrinivas
LGTM, dismissing review not needed
Support putObject to upload an empty file. Fixes minio#657
Fixes #657