forked from TrueCloudLab/frostfs-node
[#1418] shard: Do not use pointers as parameters
Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
parent
6d4d920bad
commit
5f57db6bf8
8 changed files with 10 additions and 10 deletions
|
@ -24,7 +24,7 @@ func (e *StorageEngine) exists(addr oid.Address) (bool, error) {
|
|||
e.reportShardError(sh, "could not check existence of object in shard", err)
|
||||
}
|
||||
|
||||
if res != nil && !exists {
|
||||
if !exists {
|
||||
exists = res.Exists()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue