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:
parent
4e4b24e21e
commit
28ec459ac2
2 changed files with 2 additions and 2 deletions
|
@ -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`
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue