forked from TrueCloudLab/frostfs-node
[#1718] linter: Resolve gocritic's elseif linter
See https://go-critic.com/overview#elseif for details. Change-Id: I8fd3edfacaeea2b0a83917575d545af7e7ab4d13 Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
d2114759aa
commit
8d499f03fe
4 changed files with 8 additions and 16 deletions
|
@ -436,10 +436,8 @@ func getSortedSubTree(ctx context.Context, srv TreeService_GetSubTreeServer, cid
|
|||
}
|
||||
if ms == nil {
|
||||
ms = m.Items
|
||||
} else {
|
||||
if len(m.Items) != 1 {
|
||||
return status.Error(codes.InvalidArgument, "multiple non-internal nodes provided")
|
||||
}
|
||||
} else if len(m.Items) != 1 {
|
||||
return status.Error(codes.InvalidArgument, "multiple non-internal nodes provided")
|
||||
}
|
||||
ts = append(ts, m.Time)
|
||||
ps = append(ps, p)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue