Remove unused variable

This commit is contained in:
Eliot Whalan 2016-06-23 14:01:29 +10:00
parent ad700202d1
commit c92d72b790
No known key found for this signature in database
GPG Key ID: C0A42175139840D6
1 changed files with 1 additions and 1 deletions

View File

@ -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 {