Remove unused variable
This commit is contained in:
parent
4152ed5eaa
commit
df1930fd7c
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)
|
||||||
|
|
||||||
affect, 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