From 4c5ea831ef077f8d2c49652033e5e9827bb55157 Mon Sep 17 00:00:00 2001 From: Anton Novojilov Date: Wed, 18 Oct 2023 00:09:30 +0300 Subject: [PATCH] Code refactoring --- cli/support/support_linux.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cli/support/support_linux.go b/cli/support/support_linux.go index de731ad7..ef1c5671 100644 --- a/cli/support/support_linux.go +++ b/cli/support/support_linux.go @@ -42,11 +42,9 @@ func showOSInfo() { if err != nil { return - } else { - if osInfo == nil { - fmtutil.Separator(false, "SYSTEM INFO") - printInfo(12, "Name", systemInfo.OS) - } + } else if osInfo == nil { + fmtutil.Separator(false, "SYSTEM INFO") + printInfo(12, "Name", systemInfo.OS) } printInfo(12, "Arch", systemInfo.Arch)