Tidying up some syntax.

master
Ronald1985 2 years ago
parent 5b0afa75d7
commit 20e89e86db

@ -35,7 +35,7 @@ func PlayWAVFile(filename string, stopPlaying *bool) error {
beep.Seq(streamer, callbackFunc), beep.Seq(streamer, callbackFunc),
) )
for done == false { for !done {
if *stopPlaying { if *stopPlaying {
break break
} }

@ -84,11 +84,7 @@ func DownloadFile(filename, url string) bool {
defer resp.Body.Close() defer resp.Body.Close()
_, err = io.Copy(out, resp.Body) _, err = io.Copy(out, resp.Body)
if err != nil { return err == nil
return false
}
return true
} }
func SendNotification(title string, message string) bool { func SendNotification(title string, message string) bool {

Loading…
Cancel
Save