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 {
119
119
config .CookieSecure = true
120
120
}
121
121
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 )
125
125
}
126
126
127
127
return 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 {
196
196
config .ParseTokenFunc = config .defaultParseToken
197
197
}
198
198
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 )
202
202
}
203
203
if len (config .TokenLookupFuncs ) > 0 {
204
204
extractors = append (config .TokenLookupFuncs , extractors ... )
Original file line number Diff line number Diff line change @@ -108,9 +108,9 @@ func KeyAuthWithConfig(config KeyAuthConfig) echo.MiddlewareFunc {
108
108
panic ("echo: key-auth middleware requires a validator function" )
109
109
}
110
110
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 )
114
114
}
115
115
116
116
return func (next echo.HandlerFunc ) echo.HandlerFunc {
You can’t perform that action at this time.
0 commit comments