From 9de375d169ae552e2ceea6ac2fc88f96c1a4ff3b Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Wed, 2 Aug 2023 23:34:24 -0400 Subject: [PATCH] unusued range var --- database.go | 2 +- web.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/database.go b/database.go index e398a22..8c9696b 100644 --- a/database.go +++ b/database.go @@ -1121,7 +1121,7 @@ func cleanupdb(arg string) { if err != nil { elog.Fatal(err) } - for xid, _ := range filexids { + for xid := range filexids { _, err = tx.Exec("delete from filedata where xid = ?", xid) if err != nil { elog.Fatal(err) diff --git a/web.go b/web.go index c7507cc..a6b0eb5 100644 --- a/web.go +++ b/web.go @@ -602,7 +602,7 @@ func xzone(w http.ResponseWriter, r *http.Request) { honkers = append(honkers, Honker{XID: xid}) } rows.Close() - for i, _ := range honkers { + for i := range honkers { _, honkers[i].Handle = handles(honkers[i].XID) } templinfo := getInfo(r)