Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
GGabriele committed Jan 15, 2022
1 parent 809e7d3 commit 9c68a3b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func CallGetAll(obj interface{}) (reflect.Value, error) {
method := reflect.ValueOf(obj).MethodByName("GetAll")
if !method.IsValid() {
return result, fmt.Errorf("GetAll() method not found for %v. "+
"Please file a bug with Kong Inc.", reflect.ValueOf(obj).Type())
"Please file a bug with Kong Inc", reflect.ValueOf(obj).Type())
}
entities := method.Call([]reflect.Value{})[0].Interface()
result = reflect.ValueOf(entities)
Expand Down
8 changes: 7 additions & 1 deletion validate/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ type Validator struct {
rbacResourcesOnly bool
}

func NewValidator(ctx context.Context, ks *state.KongState, client *kong.Client, parallelism int, rbacResourcesOnly bool) *Validator {
func NewValidator(
ctx context.Context,
ks *state.KongState,
client *kong.Client,
parallelism int,
rbacResourcesOnly bool,
) *Validator {
return &Validator{
ctx: ctx,
state: ks,
Expand Down

0 comments on commit 9c68a3b

Please sign in to comment.