Remove unused variable
This commit is contained in:
parent
ad700202d1
commit
c92d72b790
2
main.go
2
main.go
|
@ -118,7 +118,7 @@ func delHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
res, err := stmt.Exec(html.EscapeString(delkey))
|
res, err := stmt.Exec(html.EscapeString(delkey))
|
||||||
check(err)
|
check(err)
|
||||||
|
|
||||||
_, err := res.RowsAffected()
|
_, err = res.RowsAffected()
|
||||||
if err == sql.ErrNoRows {
|
if err == sql.ErrNoRows {
|
||||||
io.WriteString(w, "Error invalid paste")
|
io.WriteString(w, "Error invalid paste")
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue