Skip to content

Commit

Permalink
fix: removed return statement on linux and mac notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardOfCodez committed Dec 15, 2020
1 parent 60e7854 commit 68b71e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions surge/platform/notifications_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -25,5 +25,5 @@ func ShowNotification(title string, text string) error {
AppIcon: Icon,
}

return notification.Push()
notification.Push()
}
2 changes: 1 addition & 1 deletion surge/platform/notifications_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 68b71e8

Please sign in to comment.