From f34f335206915b05f6190560418df9d26dc15a06 Mon Sep 17 00:00:00 2001 From: partisan Date: Sun, 2 Mar 2025 10:09:18 +0100 Subject: [PATCH] Reverted changes bcs of './installer.go:115:13: spm.RegisterApp() (no value) used as value' --- register_unix.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/register_unix.go b/register_unix.go index fb860ee..f9e35c9 100644 --- a/register_unix.go +++ b/register_unix.go @@ -11,13 +11,13 @@ import ( ) // RegisterApp is not supported on non-Windows platforms. -func RegisterApp() { - fmt.Println("[WARN] RegisterApp() is only available on Windows") +func RegisterApp() error { + return fmt.Errorf("[WARN] RegisterApp() is only available on Windows") } // UnregisterApp is not supported on non-Windows platforms. -func UnregisterApp() { - fmt.Println("[WARN] UnregisterApp() is only available on Windows") +func UnregisterApp() error { + return fmt.Errorf("[WARN] UnregisterApp() is only available on Windows") } // IsRegistered returns true if the application is detected as installed.