Skip to content

Commit f090cfa

Browse files
committed
ci: fix formating
1 parent cc8ad37 commit f090cfa

4 files changed

Lines changed: 8 additions & 9 deletions

File tree

gate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (g *Gate) HasRolePermission(guardName, roleName, permissionName string) boo
137137
// teamID is optional and can be nil to check global assignments.
138138
func (g *Gate) Check(ctx context.Context, modelType string, modelID any, permissionName string, guardName string, teamID any) (bool, error) {
139139
guardName = g.resolveGuardName(guardName)
140-
140+
141141
var query string
142142
var args []any
143143

gate_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,4 +585,3 @@ func TestModelRef_RBAC_Helpers(t *testing.T) {
585585
}
586586
})
587587
}
588-

model_ref.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,9 @@ func (m *ModelRef) HasAnyRole(ctx context.Context, guardName string, roleNames .
317317
if err != nil {
318318
return false, err
319319
}
320-
320+
321321
assigned := rolesMap[guardName]
322-
322+
323323
roleMap := make(map[string]bool, len(assigned))
324324
for _, r := range assigned {
325325
roleMap[r] = true
@@ -342,9 +342,9 @@ func (m *ModelRef) HasAllRoles(ctx context.Context, guardName string, roleNames
342342
if err != nil {
343343
return false, err
344344
}
345-
345+
346346
assigned := rolesMap[guardName]
347-
347+
348348
roleMap := make(map[string]bool, len(assigned))
349349
for _, r := range assigned {
350350
roleMap[r] = true
@@ -366,7 +366,7 @@ func (m *ModelRef) HasAnyPermission(ctx context.Context, permissionNames ...stri
366366
if err != nil {
367367
return false, err
368368
}
369-
369+
370370
permMap := make(map[string]bool, len(assigned))
371371
for _, p := range assigned {
372372
permMap[p] = true
@@ -388,7 +388,7 @@ func (m *ModelRef) HasAllPermissions(ctx context.Context, permissionNames ...str
388388
if err != nil {
389389
return false, err
390390
}
391-
391+
392392
permMap := make(map[string]bool, len(assigned))
393393
for _, p := range assigned {
394394
permMap[p] = true

role_ref.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
// RoleRef provides a fluent API for managing a specific Role's permissions.
1111
type RoleRef struct {
12-
gate *Gate
12+
gate *Gate
1313
name string
1414
guardName string
1515
}

0 commit comments

Comments
 (0)