From b1dc965a4a5b8a48666749e824d0e480b9d08eed Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 19 Apr 2018 11:10:34 +0300 Subject: Gofmt --- lib/notification/notify_darwin.go | 6 +++--- lib/notification/notify_linux.go | 6 +++--- lib/notification/notify_windows.go | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/notification') diff --git a/lib/notification/notify_darwin.go b/lib/notification/notify_darwin.go index 1e09ef8..0a7e49b 100644 --- a/lib/notification/notify_darwin.go +++ b/lib/notification/notify_darwin.go @@ -42,9 +42,9 @@ func Send(title, text string, critical, sound bool) error { if sound { args = append(args, "-sound", "default") } -// if len(iconPath) > 0 { -// args = append(args, "-appIcon", iconPath) -// } + // if len(iconPath) > 0 { + // args = append(args, "-appIcon", iconPath) + // } return exec.Command("terminal-notifier", args...).Run() } title = strings.Replace(title, `"`, `\"`, -1) diff --git a/lib/notification/notify_linux.go b/lib/notification/notify_linux.go index f8ecdaf..11a37a7 100644 --- a/lib/notification/notify_linux.go +++ b/lib/notification/notify_linux.go @@ -23,9 +23,9 @@ func Send(title, text string, critical, sound bool) error { if critical { args = append(args, "-u", "critical") } -// if iconPath { -// args = append(args, "-i", iconPath) -// } + // if iconPath { + // args = append(args, "-i", iconPath) + // } args = append(args, title, text) if sound { soundName := "message-new-instant" diff --git a/lib/notification/notify_windows.go b/lib/notification/notify_windows.go index d927ee1..999380a 100644 --- a/lib/notification/notify_windows.go +++ b/lib/notification/notify_windows.go @@ -25,7 +25,7 @@ func Send(title, text string, critical, sound bool) error { Message: message, Audio: toast.Silent, Duration: toast.Short, -// Icon: ..., + // Icon: ..., } if sound { notification.Audio = toast.IM -- cgit v1.2.3