From 86cd047fe4a83171506227e903271fcfa8df0a42 Mon Sep 17 00:00:00 2001 From: Peter Kieltyka Date: Tue, 29 Oct 2024 15:28:12 -0400 Subject: [PATCH] remove unused return value --- middleware.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/middleware.go b/middleware.go index c708875..8039bdc 100644 --- a/middleware.go +++ b/middleware.go @@ -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 {