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),
)
for done == false {
for !done {
if *stopPlaying {
break
}

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

Loading…
Cancel
Save