Skip to content

Commit

Permalink
Remove redundant string
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdelrahmanElawady committed Oct 22, 2023
1 parent 1325dd1 commit d069fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/perf/pubip_task.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func (p *publicIPValidationTask) validateIPs(_ ns.NetNS) error {
log.Err(err).Msg("failed to get node real IP")
}

if ip.String() == strings.TrimSpace(string(realIP)) {
if ip.String() == strings.TrimSpace(realIP) {
p.unusedIPs[publicIP.IP] = true
}

Expand Down

0 comments on commit d069fd0

Please sign in to comment.