Skip to content

Commit

Permalink
enable rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Maarten van der Heijden committed Sep 20, 2023
1 parent e52a1ad commit 18da68f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ type iKind[T any] interface {
}

// ensureConcrete ensures that the given value is a value and not a pointer, if it is, convert it to its element type
//
//nolint:ireturn // Does not matter in this context
func ensureConcrete[T iKind[T]](value T) T {
if value.Kind() == reflect.Ptr {
return ensureConcrete[T](value.Elem())
Expand Down

0 comments on commit 18da68f

Please sign in to comment.