From ad534c24e9b612a8aeca98b54706869502e44584 Mon Sep 17 00:00:00 2001 From: Lomanic <5020919+Lomanic@users.noreply.github.com> Date: Thu, 6 Mar 2025 02:48:08 +0100 Subject: [PATCH] [host][aix] Remove redundant 'or' in parseUptime() found by 'go test' --- host/host_aix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/host_aix.go b/host/host_aix.go index 4358b61..9cd8153 100644 --- a/host/host_aix.go +++ b/host/host_aix.go @@ -110,7 +110,7 @@ func parseUptime(uptime string) uint64 { if err != nil { return 0 } - case ut[3] == "mins," || ut[3] == "mins,": + case ut[3] == "mins,": mins, err = strconv.ParseUint(ut[2], 10, 64) if err != nil { return 0