forked from TrueCloudLab/frostfs-node
[#1679] node: Fix 'revive' warning
Change-Id: I74ff6332b10f17a329c5d108d01d43002e92aafd Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
c4f941a5f5
commit
0c5d74729c
1 changed files with 4 additions and 4 deletions
|
@ -174,11 +174,11 @@ func parseStatus(lexeme string) (apechain.Status, error) {
|
|||
case "deny":
|
||||
if !found {
|
||||
return apechain.AccessDenied, nil
|
||||
} else if strings.EqualFold(expression, "QuotaLimitReached") {
|
||||
return apechain.QuotaLimitReached, nil
|
||||
} else {
|
||||
return 0, fmt.Errorf("%w: %s", errUnknownStatusDetail, expression)
|
||||
}
|
||||
if strings.EqualFold(expression, "QuotaLimitReached") {
|
||||
return apechain.QuotaLimitReached, nil
|
||||
}
|
||||
return 0, fmt.Errorf("%w: %s", errUnknownStatusDetail, expression)
|
||||
case "allow":
|
||||
if found {
|
||||
return 0, errUnknownStatusDetail
|
||||
|
|
Loading…
Add table
Reference in a new issue