Skip to content

Commit 68b71e8

Browse files
committed
fix: removed return statement on linux and mac notifications
1 parent 60e7854 commit 68b71e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

surge/platform/notifications_darwin.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
// ShowNotification .
12-
func ShowNotification(title string, text string) error {
12+
func ShowNotification(title string, text string) {
1313
dir, err := filepath.Abs(filepath.Dir(os.Args[0]))
1414
if err != nil {
1515
log.Fatal(err)
@@ -25,5 +25,5 @@ func ShowNotification(title string, text string) error {
2525
AppIcon: Icon,
2626
}
2727

28-
return notification.Push()
28+
notification.Push()
2929
}

surge/platform/notifications_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
)
1010

1111
// ShowNotification .
12-
func ShowNotification(title string, text string) error {
12+
func ShowNotification(title string, text string) {
1313

1414
dir, err := filepath.Abs(filepath.Dir(os.Args[0]))
1515
if err != nil {

0 commit comments

Comments
 (0)