From 83ad598cc4120d38626de38d602ef2941ee69945 Mon Sep 17 00:00:00 2001 From: Eliott Bouhana Date: Tue, 29 Oct 2024 11:54:00 +0100 Subject: [PATCH] internal/osinfo: too many return values Signed-off-by: Eliott Bouhana --- internal/osinfo/osinfo_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/osinfo/osinfo_windows.go b/internal/osinfo/osinfo_windows.go index fd408b1383..2755284648 100644 --- a/internal/osinfo/osinfo_windows.go +++ b/internal/osinfo/osinfo_windows.go @@ -17,7 +17,7 @@ import ( func init() { k, err := registry.OpenKey(registry.LOCAL_MACHINE, `SOFTWARE\Microsoft\Windows NT\CurrentVersion`, registry.QUERY_VALUE) if err != nil { - return "unknown" + return } defer k.Close()