-
Notifications
You must be signed in to change notification settings - Fork 14
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
Return header directly instead of wrapper struct #497
Conversation
client/object_get.go
Outdated
@@ -349,7 +349,7 @@ type ResObjectHead struct { | |||
|
|||
// ReadHeader reads header of the requested object. | |||
// Returns false if header is missing in the response (not read). | |||
func (x *ResObjectHead) ReadHeader(dst *object.Object) bool { | |||
func (x *resObjectHead) ReadHeader(dst *object.Object) bool { |
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.
can it be made private now?
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.
resObjectHead
is private, so it doesn't matter much.
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.
sure but usually when i see public methods on a private struct i think that it implements something and all. that is just an internal converter. if there is no external tests for it, i suggest to make it private. do not insist
dd3557d
to
b82cdc8
Compare
Removed resObjectHead completely |
So to draft or not to draft? That is the question. |
No draft, of course 😅 |
Conflicts after #491 merge. |
Signed-off-by: Evgenii Baidakov <[email protected]>
b82cdc8
to
25d5593
Compare
Rebased |
closes #487