Skip to content

Commit 5bb5362

Browse files
authored
Merge pull request #5 from koyashiro/refactor/simplify-string-validation
simplify string validation
2 parents 95dd85d + 99a99d5 commit 5bb5362

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

path_auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func PathAuthWithConfig(config PathAuthConfig) echo.MiddlewareFunc {
6565
panic("PathAuth: requires a validator function")
6666
}
6767

68-
if len(config.Param) == 0 {
68+
if config.Param == "" {
6969
panic("PathAuth: requires a param")
7070
}
7171

0 commit comments

Comments
 (0)