Skip to content

Commit

Permalink
invalid group names now does not generate errors, instead just return…
Browse files Browse the repository at this point in the history
…s 0 results.
  • Loading branch information
bengarrett committed Dec 5, 2024
1 parent 388e4d5 commit 53e5b3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion model/releaser.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ func (r *Releasers) Where(ctx context.Context, exec boil.ContextExecutor, name s
}
s, err := namer.Humanize(namer.Path(name))
if err != nil {
return nil, fmt.Errorf("model releaser name humanize: %w", err)
// if the name is invalid, then return 0 results, but there is no need to return an error.
return nil, nil
}
n := strings.ToUpper(s)
x := null.StringFrom(n)
Expand Down

0 comments on commit 53e5b3a

Please sign in to comment.