-
Notifications
You must be signed in to change notification settings - Fork 252
Ft/objdel add modified header check #1145
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
Conversation
lib/api/objectDelete.js
Outdated
| if (err) { | ||
| return process.nextTick(() => next(err, bucketMD)); | ||
| } | ||
| return process.nextTick(() => |
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.
curious, why process.nextTick?
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.
cos everything in the function is synchronous, so we gotta mimic async :)
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.
cool beans ty for the explanation :)
lib/api/objectDelete.js
Outdated
| if (err) { | ||
| return process.nextTick(() => next(err, bucketMD)); | ||
| } | ||
| return process.nextTick(() => |
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.
This return is redundant as it will go the next one anyways.
Do it again human slave!:point_right: :runner: (Oh and the pull request has been updated, by the way.)
|
PR has been updated. Reviewers, please be cautious. |
ec8f027 to
239db56
Compare
Do it again human slave!:point_right: :runner: (Oh and the pull request has been updated, by the way.)
|
PR has been updated. Reviewers, please be cautious. |
239db56 to
98c25f9
Compare
|
PR has been updated. Reviewers, please be cautious. |
98c25f9 to
a02d226
Compare
|
PR has been updated. Reviewers, please be cautious. |
Adds check for date modified headers in objectDelete API
Depends on scality/Arsenal#435