forked from TrueCloudLab/frostfs-node
[#38] node: Fix linter warnings
Signed-off-by: Pavel Karpy <p.karpy@yadro.com>
This commit is contained in:
parent
515c60bdf4
commit
73bc1b0b68
3 changed files with 4 additions and 14 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue