Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
  • Loading branch information
katexochen committed Sep 5, 2024
1 parent 3b8c296 commit 1c9b529
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ type OptionTransformer struct{}

func (t OptionTransformer) Transformer(typ reflect.Type) func(dst, src reflect.Value) error {
if typ.Kind() != reflect.Ptr {
typ = reflect.PtrTo(typ)
typ = reflect.PointerTo(typ)
}
if _, ok := typ.MethodByName("IsSome"); !ok {
return nil
Expand Down
2 changes: 1 addition & 1 deletion config/validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (v *Validator) Validate(ctx context.Context, config Config) error {
switch val := v.(type) {
// Policies that only return a single string (e.g. deny[msg])
case string:
resErr = errors.Join(resErr, fmt.Errorf(val))
resErr = errors.Join(resErr, errors.New(val))
}
}
}
Expand Down

0 comments on commit 1c9b529

Please sign in to comment.