Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
l0kix2 committed Jun 27, 2024
1 parent e24a71e commit 3a81d01
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func createRPCProxiesSpec() ytv1.RPCProxiesSpec {
func getPortFromEnv(envvar string) *int32 {
portStr := os.Getenv(envvar)
if portStr != "" {
port, err := strconv.Atoi(portStr)
port, err := strconv.ParseInt(portStr, 10, 32)
if err != nil {
panic(fmt.Sprintf("Invalid %s value", envvar))
}
Expand Down

0 comments on commit 3a81d01

Please sign in to comment.