mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-25 03:19:55 +01:00
Upgrade golangci-lint
- Fix a SQL string concatenation - Install golangci-lint using `tools.go`
This commit is contained in:
parent
fd6edf967f
commit
ae817da223
6 changed files with 225 additions and 9 deletions
|
|
@ -33,7 +33,7 @@ var once sync.Once
|
|||
|
||||
func isDBInitialized(tx *sql.Tx) (initialized bool) {
|
||||
once.Do(func() {
|
||||
rows, err := tx.Query("select count(*) from property where id='" + consts.InitialSetupFlagKey + "'")
|
||||
rows, err := tx.Query("select count(*) from property where id=?", consts.InitialSetupFlagKey)
|
||||
checkErr(err)
|
||||
initialized = checkCount(rows) > 0
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue