Skip to content

Commit

Permalink
fix incorrect validation
Browse files Browse the repository at this point in the history
  • Loading branch information
spikelu2016 committed Jun 24, 2024
1 parent afa1dde commit 630fdc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/manager/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (m *RouteManager) validateRoute(r *route.Route) error {
fields = append(fields, fmt.Sprintf("steps.[%d].retryInterval", index))
}

if !strings.HasSuffix(step.RetryInterval, "s") || !strings.HasSuffix(step.RetryInterval, "ms") {
if !strings.HasSuffix(step.RetryInterval, "s") && !strings.HasSuffix(step.RetryInterval, "ms") {
fields = append(fields, fmt.Sprintf("steps.[%d].retryInterval", index))
}
}
Expand Down

0 comments on commit 630fdc3

Please sign in to comment.