[#1679] node: Fix 'revive' warning
Some checks failed
Vulncheck / Vulncheck (push) Successful in 1m17s
Build / Build Components (push) Successful in 1m33s
Pre-commit hooks / Pre-commit (push) Has been cancelled
Tests and linters / Lint (push) Has been cancelled
Tests and linters / Tests (push) Has been cancelled
Tests and linters / Tests with -race (push) Has been cancelled
Tests and linters / Staticcheck (push) Has been cancelled
Tests and linters / gopls check (push) Has been cancelled
Tests and linters / Run gofumpt (push) Has been cancelled
OCI image / Build container images (push) Successful in 4m3s
Some checks failed
Vulncheck / Vulncheck (push) Successful in 1m17s
Build / Build Components (push) Successful in 1m33s
Pre-commit hooks / Pre-commit (push) Has been cancelled
Tests and linters / Lint (push) Has been cancelled
Tests and linters / Tests (push) Has been cancelled
Tests and linters / Tests with -race (push) Has been cancelled
Tests and linters / Staticcheck (push) Has been cancelled
Tests and linters / gopls check (push) Has been cancelled
Tests and linters / Run gofumpt (push) Has been cancelled
OCI image / Build container images (push) Successful in 4m3s
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":
|
case "deny":
|
||||||
if !found {
|
if !found {
|
||||||
return apechain.AccessDenied, nil
|
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":
|
case "allow":
|
||||||
if found {
|
if found {
|
||||||
return 0, errUnknownStatusDetail
|
return 0, errUnknownStatusDetail
|
||||||
|
|
Loading…
Add table
Reference in a new issue