From b866d1a700ce58c5d8d7c1ce536f689f29e8ce40 Mon Sep 17 00:00:00 2001 From: Eliot Whalan Date: Thu, 23 Jun 2016 14:01:29 +1000 Subject: [PATCH] Remove unused variable --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 01f5d85..13f9ea5 100644 --- a/main.go +++ b/main.go @@ -118,7 +118,7 @@ func delHandler(w http.ResponseWriter, r *http.Request) { res, err := stmt.Exec(html.EscapeString(delkey)) check(err) - _, err := res.RowsAffected() + _, err = res.RowsAffected() if err == sql.ErrNoRows { io.WriteString(w, "Error invalid paste") } else {