[#973] node: Resolve revive: unused-parameter linter
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
dacf580b87
commit
66a26b7775
34 changed files with 41 additions and 41 deletions
|
@ -353,7 +353,7 @@ type PutObjectPrm struct {
|
|||
|
||||
rdr io.Reader
|
||||
|
||||
headerCallback func(*objectSDK.Object)
|
||||
headerCallback func()
|
||||
|
||||
prepareLocally bool
|
||||
}
|
||||
|
@ -370,7 +370,7 @@ func (x *PutObjectPrm) SetPayloadReader(rdr io.Reader) {
|
|||
|
||||
// SetHeaderCallback sets callback which is called on the object after the header is received
|
||||
// but before the payload is written.
|
||||
func (x *PutObjectPrm) SetHeaderCallback(f func(*objectSDK.Object)) {
|
||||
func (x *PutObjectPrm) SetHeaderCallback(f func()) {
|
||||
x.headerCallback = f
|
||||
}
|
||||
|
||||
|
@ -439,7 +439,7 @@ func PutObject(ctx context.Context, prm PutObjectPrm) (*PutObjectRes, error) {
|
|||
|
||||
if wrt.WriteHeader(ctx, *prm.hdr) {
|
||||
if prm.headerCallback != nil {
|
||||
prm.headerCallback(prm.hdr)
|
||||
prm.headerCallback()
|
||||
}
|
||||
|
||||
sz := prm.hdr.PayloadSize()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue