Skip to content

Commit

Permalink
New unit tests for route option removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariquest committed Jan 9, 2025
1 parent 5c93571 commit 95cb4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cf/commands/route/update_route.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (cmd *UpdateRoute) Execute(c flags.FlagContext) error {
}

if c.IsSet("o") || c.IsSet("r") {
err := cmd.validateAPIVersionForPerRouteOptions(c)
err := cmd.validateAPIVersionForPerRouteOptions()
if err != nil {
return err
}
Expand All @@ -126,7 +126,7 @@ func (cmd *UpdateRoute) Execute(c flags.FlagContext) error {
return nil
}

func (cmd *UpdateRoute) validateAPIVersionForPerRouteOptions(c flags.FlagContext) error {
func (cmd *UpdateRoute) validateAPIVersionForPerRouteOptions() error {
err := command.MinimumCCAPIVersionCheck(cmd.config.APIVersion(), ccversion.MinVersionPerRouteOpts)
if err != nil {
cmd.ui.Say(T("Your CC API version ({{.APIVersion}}) does not support per route options."+
Expand Down

0 comments on commit 95cb4be

Please sign in to comment.