Skip to content

Commit

Permalink
Fix unnecessary conversion to int
Browse files Browse the repository at this point in the history
  • Loading branch information
ravicious committed Dec 3, 2024
1 parent 01ab47f commit 0889510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/service/servicecfg/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func (a *App) checkPorts() error {
}

for _, portRange := range a.TCPPorts {
if err := netutils.ValidatePortRange(int(portRange.Port), int(portRange.EndPort)); err != nil {
if err := netutils.ValidatePortRange(portRange.Port, portRange.EndPort); err != nil {
return trace.Wrap(err, "validating a port range of a TCP app")
}
}
Expand Down

0 comments on commit 0889510

Please sign in to comment.