We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95dd85d commit 99a99d5Copy full SHA for 99a99d5
1 file changed
path_auth.go
@@ -65,7 +65,7 @@ func PathAuthWithConfig(config PathAuthConfig) echo.MiddlewareFunc {
65
panic("PathAuth: requires a validator function")
66
}
67
68
- if len(config.Param) == 0 {
+ if config.Param == "" {
69
panic("PathAuth: requires a param")
70
71
0 commit comments