unusued range var

This commit is contained in:
Ted Unangst 2023-08-02 23:34:24 -04:00
parent ef8b188fa9
commit 9de375d169
2 changed files with 2 additions and 2 deletions

View File

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

2
web.go
View File

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