From a0f8ee59a1a738ad6a3787b4ad7904540fa38010 Mon Sep 17 00:00:00 2001 From: MichaelOultram Date: Tue, 28 Jul 2015 21:48:20 +0100 Subject: [PATCH] Fixing build issues --- service.go | 2 +- web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/service.go b/service.go index 551fc28..bc0db34 100644 --- a/service.go +++ b/service.go @@ -69,7 +69,7 @@ func findServiceAndAdd(user *gumble.User, url string) (string, error) { oldLength := dj.queue.Len() var title string var err error - if title, err := urlService.NewRequest(user, url); err == nil { + if title, err = urlService.NewRequest(user, url); err == nil { // Starts playing the new song if nothing else is playing if oldLength == 0 && dj.queue.Len() != 0 && !dj.audioStream.IsPlaying() { diff --git a/web.go b/web.go index b44c601..afc760f 100644 --- a/web.go +++ b/web.go @@ -38,7 +38,7 @@ func addSong(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Invalid Token") } else { var url = html.UnescapeString(r.FormValue("url")) - + fmt.Fprintf(w, url) } }