Skip to content

Commit 4002454

Browse files
committed
Return a pointer instead of a copy.
This will allow later to change upstream to use a pointer receiver for this interface so that copies will stop happening. Signed-off-by: Simo Sorce <[email protected]>
1 parent 281ffae commit 4002454

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/authorization/registry/util/attributes.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func ToDefaultAuthorizationAttributes(user user.Info, namespace string, in autho
2222
resource = tokens[0]
2323
}
2424

25-
return authorizer.AttributesRecord{
25+
return &authorizer.AttributesRecord{
2626
User: user,
2727
Verb: in.Verb,
2828
Namespace: namespace,

0 commit comments

Comments
 (0)