Skip to content

Commit

Permalink
Merge pull request #5 from koyashiro/refactor/simplify-string-validation
Browse files Browse the repository at this point in the history
simplify string validation
  • Loading branch information
bootjp authored Nov 10, 2022
2 parents 95dd85d + 99a99d5 commit 5bb5362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion path_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func PathAuthWithConfig(config PathAuthConfig) echo.MiddlewareFunc {
panic("PathAuth: requires a validator function")
}

if len(config.Param) == 0 {
if config.Param == "" {
panic("PathAuth: requires a param")
}

Expand Down

0 comments on commit 5bb5362

Please sign in to comment.