Skip to content

Commit

Permalink
remove unused return value
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Oct 29, 2024
1 parent fd34239 commit 86cd047
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ type Options struct {
ErrHandler ErrHandler
}

func (o *Options) ApplyDefaults() error {
func (o *Options) ApplyDefaults() {
if o.ErrHandler == nil {
o.ErrHandler = errHandler
}
return nil
}

func Session(cfg *Options) func(next http.Handler) http.Handler {
Expand Down

0 comments on commit 86cd047

Please sign in to comment.