1
0
Fork 0
mirror of https://github.com/Eggbertx/gochan.git synced 2025-09-11 11:46:24 -07:00

Apply changes suggested by Deepsource

This commit is contained in:
Eggbertx 2025-08-10 19:13:33 -07:00
parent 4e4b24e21e
commit 28ec459ac2
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ import (
"github.com/rs/zerolog"
)
// WordFilter represents data in the deprecated wordfilters table
// Wordfilter represents data in the deprecated wordfilters table
type Wordfilter struct {
ID int // sql: `id`
BoardDirs *string // sql: `board_dirs`

View file

@ -98,7 +98,7 @@ func RunSQLFile(path string, db *gcsql.GCDB) error {
for _, statement := range sqlArr {
statement = strings.TrimSpace(statement)
if len(statement) > 0 {
if statement != "" {
if _, err = db.Exec(nil, statement); err != nil {
return err
}