Update Go in actions and add go vet to pre-commit

This commit is contained in:
Tulir Asokan
2022-08-15 16:19:43 +03:00
parent 13c7573b3f
commit 52f7ca1a49
6 changed files with 7 additions and 7 deletions

View File

@@ -27,7 +27,6 @@ func (up UserPortal) Scan(l log.Logger, row dbutil.Scannable) *UserPortal {
if err != nil {
l.Errorln("Error scanning user portal:", err)
panic(err)
return nil
}
up.Timestamp = time.UnixMilli(ts)
return &up
@@ -49,7 +48,6 @@ func (u *User) GetPortals() []UserPortal {
if err != nil {
u.log.Errorln("Failed to get portals:", err)
panic(err)
return nil
}
return u.scanUserPortals(rows)
}