1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-29 13:48:36 +00:00

Use slices.Contains instead of base.Int64sContains

This commit is contained in:
Henry Goodman
2024-01-31 12:07:31 +11:00
parent d102809251
commit 5896945109

View File

@@ -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)
}