Fix issues found by staticcheck

This commit is contained in:
Sascha L. Teichmann
2024-01-06 10:34:37 +01:00
parent 65762936a4
commit 5442fab97d
6 changed files with 14 additions and 18 deletions

View File

@ -22,8 +22,6 @@ import (
"github.com/bamiaux/rez"
"github.com/jackc/pgx/v4"
"bytes"
"bitbucket.org/s_l_teichmann/mtsatellite/common"
)
@ -126,7 +124,7 @@ func (tu *tileUpdater) checkIP(r *http.Request) bool {
}
for i := range tu.ips {
if bytes.Compare(tu.ips[i], ip) == 0 {
if tu.ips[i].Equal(ip) {
return true
}
}