mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-18 23:44:40 +01:00
fixed healthchecker start even if disabled, simplified label parsing
This commit is contained in:
@@ -32,7 +32,7 @@ func ValidatePathPattern(s string) (PathPattern, error) {
|
||||
|
||||
func ValidatePathPatterns(s []string) (PathPatterns, E.Error) {
|
||||
if len(s) == 0 {
|
||||
return []PathPattern{"/"}, nil
|
||||
return nil, nil
|
||||
}
|
||||
errs := E.NewBuilder("invalid path patterns")
|
||||
pp := make(PathPatterns, len(s))
|
||||
|
||||
Reference in New Issue
Block a user