From d069fd0390a0925c1ea611788b97661109bae622 Mon Sep 17 00:00:00 2001 From: AbdelrahmanElawady Date: Sun, 22 Oct 2023 12:26:22 +0300 Subject: [PATCH] Remove redundant string --- pkg/perf/pubip_task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/perf/pubip_task.go b/pkg/perf/pubip_task.go index 0836e3b09..a899bceae 100644 --- a/pkg/perf/pubip_task.go +++ b/pkg/perf/pubip_task.go @@ -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 }