We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 95dd85d + 99a99d5 commit 5bb5362Copy full SHA for 5bb5362
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