Reverted changes bcs of './installer.go:115:13: spm.RegisterApp() (no value) used as value'
This commit is contained in:
parent
f3a78f4bd6
commit
f34f335206
1 changed files with 4 additions and 4 deletions
|
@ -11,13 +11,13 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegisterApp is not supported on non-Windows platforms.
|
// RegisterApp is not supported on non-Windows platforms.
|
||||||
func RegisterApp() {
|
func RegisterApp() error {
|
||||||
fmt.Println("[WARN] RegisterApp() is only available on Windows")
|
return fmt.Errorf("[WARN] RegisterApp() is only available on Windows")
|
||||||
}
|
}
|
||||||
|
|
||||||
// UnregisterApp is not supported on non-Windows platforms.
|
// UnregisterApp is not supported on non-Windows platforms.
|
||||||
func UnregisterApp() {
|
func UnregisterApp() error {
|
||||||
fmt.Println("[WARN] UnregisterApp() is only available on Windows")
|
return fmt.Errorf("[WARN] UnregisterApp() is only available on Windows")
|
||||||
}
|
}
|
||||||
|
|
||||||
// IsRegistered returns true if the application is detected as installed.
|
// IsRegistered returns true if the application is detected as installed.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue