[#1671] Use slices.ContainsFunc() where possible

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
Evgenii Stratonikov 2025-03-13 09:34:59 +03:00 committed by Evgenii Stratonikov
parent 460e5cbccf
commit ecb6b0793c
5 changed files with 16 additions and 28 deletions

View file

@ -4,6 +4,7 @@ import (
"crypto/ecdsa"
"crypto/elliptic"
"crypto/rand"
"slices"
"testing"
"git.frostfs.info/TrueCloudLab/frostfs-sdk-go/api/acl"
@ -91,13 +92,7 @@ func TestIsVerbCompatible(t *testing.T) {
for op, list := range table {
for _, verb := range verbs {
var contains bool
for _, v := range list {
if v == verb {
contains = true
break
}
}
contains := slices.Contains(list, verb)
tok.ForVerb(verb)