File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ func CSRFWithConfig(config CSRFConfig) echo.MiddlewareFunc {
119119config .CookieSecure = true
120120}
121121
122- extractors , err := CreateExtractors (config .TokenLookup )
123- if err != nil {
124- panic (err )
122+ extractors , cErr := CreateExtractors (config .TokenLookup )
123+ if cErr != nil {
124+ panic (cErr )
125125}
126126
127127return func (next echo.HandlerFunc ) echo.HandlerFunc {
Original file line number Diff line number Diff line change @@ -196,9 +196,9 @@ func JWTWithConfig(config JWTConfig) echo.MiddlewareFunc {
196196config .ParseTokenFunc = config .defaultParseToken
197197}
198198
199- extractors , err := createExtractors (config .TokenLookup , config .AuthScheme )
200- if err != nil {
201- panic (err )
199+ extractors , cErr := createExtractors (config .TokenLookup , config .AuthScheme )
200+ if cErr != nil {
201+ panic (cErr )
202202}
203203if len (config .TokenLookupFuncs ) > 0 {
204204extractors = append (config .TokenLookupFuncs , extractors ... )
Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ func KeyAuthWithConfig(config KeyAuthConfig) echo.MiddlewareFunc {
108108panic ("echo: key-auth middleware requires a validator function" )
109109}
110110
111- extractors , err := createExtractors (config .KeyLookup , config .AuthScheme )
112- if err != nil {
113- panic (err )
111+ extractors , cErr := createExtractors (config .KeyLookup , config .AuthScheme )
112+ if cErr != nil {
113+ panic (cErr )
114114}
115115
116116return func (next echo.HandlerFunc ) echo.HandlerFunc {
You can’t perform that action at this time.
0 commit comments