fix: errcheck
All checks were successful
build / build (push) Successful in 3m10s

This commit is contained in:
d3m0k1d
2026-01-22 20:34:49 +03:00
parent 7741e08ebc
commit fb624a9147

View File

@@ -19,8 +19,9 @@ func CreateTables() error {
return fmt.Errorf("failed to open requests db: %w", err)
}
defer func() {
err = db_r.Close()
if err != nil {
db_r.Close()
fmt.Println(err)
}
}()
@@ -40,8 +41,9 @@ func CreateTables() error {
return fmt.Errorf("failed to open bans db: %w", err)
}
defer func() {
err = db_b.Close()
if err != nil {
db_b.Close()
fmt.Println(err)
}
}()