Skip to content

Commit

Permalink
fix composite literal uses unkeyed fields
Browse files Browse the repository at this point in the history
  • Loading branch information
zachmann committed Feb 16, 2024
1 parent fe485c1 commit 8060c02
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/utils/auth/auther.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ func RequireCapability(
rlog, tx, mt.ID, api.NotificationClassInsufficientCapabilities, clientData,
model.KeyValues{
{
"Needed Capability",
capability.Name,
Key: "Needed Capability",
Value: capability.Name,
},
},
)
Expand Down Expand Up @@ -264,8 +264,8 @@ func RequireMytokenIsParentOrCapability(
rlog, tx, mt.ID, api.NotificationClassInsufficientCapabilities, clientData,
model.KeyValues{
{
"Needed Capability",
capabilityIfNotParent.Name,
Key: "Needed Capability",
Value: capabilityIfNotParent.Name,
},
},
)
Expand Down

0 comments on commit 8060c02

Please sign in to comment.