From 68b71e806831d417a04aa1afa5510957b0e09325 Mon Sep 17 00:00:00 2001 From: Christian Busch Date: Tue, 15 Dec 2020 11:11:51 +0100 Subject: [PATCH] fix: removed return statement on linux and mac notifications --- surge/platform/notifications_darwin.go | 4 ++-- surge/platform/notifications_linux.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/surge/platform/notifications_darwin.go b/surge/platform/notifications_darwin.go index 8911f5c..5fad0ca 100644 --- a/surge/platform/notifications_darwin.go +++ b/surge/platform/notifications_darwin.go @@ -9,7 +9,7 @@ import ( ) // ShowNotification . -func ShowNotification(title string, text string) error { +func ShowNotification(title string, text string) { dir, err := filepath.Abs(filepath.Dir(os.Args[0])) if err != nil { log.Fatal(err) @@ -25,5 +25,5 @@ func ShowNotification(title string, text string) error { AppIcon: Icon, } - return notification.Push() + notification.Push() } diff --git a/surge/platform/notifications_linux.go b/surge/platform/notifications_linux.go index 42ca094..43efbb7 100644 --- a/surge/platform/notifications_linux.go +++ b/surge/platform/notifications_linux.go @@ -9,7 +9,7 @@ import ( ) // ShowNotification . -func ShowNotification(title string, text string) error { +func ShowNotification(title string, text string) { dir, err := filepath.Abs(filepath.Dir(os.Args[0])) if err != nil {