From 589694510973c8ae78763271c2848e74a6f0b171 Mon Sep 17 00:00:00 2001 From: Henry Goodman <13032204@student.uts.edu.au> Date: Wed, 31 Jan 2024 12:07:31 +1100 Subject: [PATCH] Use slices.Contains instead of base.Int64sContains --- models/git/protected_branch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/git/protected_branch.go b/models/git/protected_branch.go index abceb9842d..f6a013b1b0 100644 --- a/models/git/protected_branch.go +++ b/models/git/protected_branch.go @@ -159,7 +159,7 @@ func (protectBranch *ProtectedBranch) CanUserForcePush(ctx context.Context, user return protectBranch.CanUserPush(ctx, user) } - if base.Int64sContains(protectBranch.ForcePushWhitelistUserIDs, user.ID) { + if slices.Contains(protectBranch.ForcePushWhitelistUserIDs, user.ID) { return protectBranch.CanUserPush(ctx, user) }