Address a bunch of golangci-lint warnings.

This commit is contained in:
Ward Vandewege 2021-04-24 11:41:29 -04:00
parent f7b6c68d22
commit f7c7b4873a
6 changed files with 46 additions and 30 deletions

4
db.go
View file

@ -27,8 +27,8 @@ func (h *Headscale) initDB() error {
db.AutoMigrate(&PreAuthKey{})
db.Close()
h.setValue("db_version", dbVersion)
return nil
err = h.setValue("db_version", dbVersion)
return err
}
func (h *Headscale) db() (*gorm.DB, error) {