[#38] node: Fix linter warnings

Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
Pavel Karpy 2023-01-31 18:27:58 +03:00 committed by fyrchik
parent 515c60bdf4
commit 73bc1b0b68
3 changed files with 4 additions and 14 deletions

View file

@ -247,9 +247,11 @@ func (t *FSTree) Put(prm common.PutPrm) (common.PutRes, error) {
err = common.ErrNoSpace
_ = os.RemoveAll(tmpPath)
}
} else {
err = os.Rename(tmpPath, p)
}
return common.PutRes{StorageID: []byte{}}, os.Rename(tmpPath, p)
return common.PutRes{StorageID: []byte{}}, err
}
func (t *FSTree) writeFlags() int {