forked from TrueCloudLab/frostfs-node
[#302] Fix errcheck linter errors
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
5e231c515a
commit
04c0c1b8f5
1 changed files with 4 additions and 1 deletions
|
@ -43,7 +43,10 @@ func (t *validatingTarget) WriteHeader(obj *object.RawObject) error {
|
|||
}
|
||||
|
||||
func (t *validatingTarget) Write(p []byte) (n int, err error) {
|
||||
t.hash.Write(p)
|
||||
n, err = t.hash.Write(p)
|
||||
if err != nil {
|
||||
return
|
||||
}
|
||||
|
||||
return t.nextTarget.Write(p)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue