Skip to content

Commit

Permalink
Go way of doing the comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
sibprogrammer committed Jun 12, 2021
1 parent 88aabff commit 4a4cf1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/deploy.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var deployCmd = &cobra.Command{
return err
}

if 0 == len(server.Info.IP.IPv4) {
if len(server.Info.IP.IPv4) == 0 {
return errors.New("IPv4 address is required")
}
defaultIp := server.Info.IP.IPv4[0]
Expand Down

0 comments on commit 4a4cf1a

Please sign in to comment.