diff --git a/main.go b/main.go index 8f04247..495bf9c 100644 --- a/main.go +++ b/main.go @@ -90,7 +90,7 @@ func main() { return } - s3Storage.Del(params["dashid"]) + _ = s3Storage.Del(params["dashid"]) http.Error(res, "OK", http.StatusOK) }) @@ -186,10 +186,10 @@ func generateAPIKey() string { func renderTemplate(templateName string, context pongo2.Context, res http.ResponseWriter) { if tpl, ok := templates[templateName]; ok { - tpl.ExecuteWriter(context, res) + _ = tpl.ExecuteWriter(context, res) } else { res.WriteHeader(http.StatusInternalServerError) - res.Write([]byte(fmt.Sprintf("Template %s not found!", templateName))) + _, _ = res.Write([]byte(fmt.Sprintf("Template %s not found!", templateName))) } } diff --git a/structs.go b/structs.go index 8847d5f..8327a6d 100644 --- a/structs.go +++ b/structs.go @@ -22,7 +22,7 @@ func loadDashboard(dashid string) (*dashboard, error) { } tmp := &dashboard{DashboardID: dashid} - json.Unmarshal(data, tmp) + _ = json.Unmarshal(data, tmp) return tmp, nil } diff --git a/welcome_runner.go b/welcome_runner.go index 5563e40..4a46fc3 100644 --- a/welcome_runner.go +++ b/welcome_runner.go @@ -45,7 +45,10 @@ func runWelcomePage() { url := fmt.Sprintf("%s/welcome/beer_available", baseURL) req, _ := http.NewRequest("PUT", url, bytes.NewBuffer(body)) req.Header.Add("Authorization", welcomeAPIToken) - http.DefaultClient.Do(req) + _, err = http.DefaultClient.Do(req) + if err != nil { + log.Printf("[WelcomeRunner] %s", err) + } } }