chore: remove unnecessary redeclarations in for loops (part 2) (#18593)

This commit is contained in:
ケイラ
2025-06-26 12:28:00 -06:00
committed by GitHub
parent e03d13211c
commit 09cc906981
14 changed files with 0 additions and 24 deletions

View File

@ -760,7 +760,6 @@ func rbacTraceAttributes(actor Subject, action policy.Action, objectType string,
uniqueRoleNames := actor.SafeRoleNames()
roleStrings := make([]string, 0, len(uniqueRoleNames))
for _, roleName := range uniqueRoleNames {
roleName := roleName
roleStrings = append(roleStrings, roleName.String())
}
return trace.WithAttributes(