Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

Commit 4a382dc

Browse files
committed
Fix another linter error with type conversion
1 parent fb0160e commit 4a382dc

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

internal/cmd/fga.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -749,10 +749,7 @@ var applySchemaCmd = &cobra.Command{
749749

750750
ops := make([]fga.UpdateResourceTypeOpts, 0)
751751
for _, rt := range response.ResourceTypes {
752-
ops = append(ops, fga.UpdateResourceTypeOpts{
753-
Type: rt.Type,
754-
Relations: rt.Relations,
755-
})
752+
ops = append(ops, fga.UpdateResourceTypeOpts(rt))
756753
}
757754

758755
_, err = fga.BatchUpdateResourceTypes(context.Background(), ops)

0 commit comments

Comments
 (0)