Skip to content

Commit

Permalink
fix typo and cleanup comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed Oct 2, 2024
1 parent b6901a0 commit 9439b7f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions nitric/handlers/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ type (
// func() error
// func(*T)
// func(*T) error
// func(*T) *T
// func(*T) (*T, error)
// Handler[T]
// If the function is not a valid type, an error is returned
func HandlerFromInterface[T any](handler interface{}) (Handler[T], error) {
Expand All @@ -49,7 +47,7 @@ func HandlerFromInterface[T any](handler interface{}) (Handler[T], error) {
return nil
}
case func(*T) error:
handlerType = Handler[T](handlerType)
typedHandler = Handler[T](handlerType)
case Handler[T]:
typedHandler = handlerType

Expand Down

0 comments on commit 9439b7f

Please sign in to comment.