mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Ran formatter and fixed some lint issues
This commit is contained in:
@@ -162,7 +162,7 @@ func executeDeleteQuery(tableName string, id string, tx *sqlx.Tx) error {
|
||||
}
|
||||
idColumnName := getColumn(tableName, "id")
|
||||
_, err := tx.Exec(
|
||||
`DELETE FROM ` + tableName + ` WHERE ` + idColumnName + ` = ?`,
|
||||
`DELETE FROM `+tableName+` WHERE `+idColumnName+` = ?`,
|
||||
id,
|
||||
)
|
||||
return err
|
||||
@@ -178,7 +178,7 @@ func ensureTx(tx *sqlx.Tx) {
|
||||
// sqlGenKeys is used for passing a struct and returning a string
|
||||
// of keys for non empty key:values. These keys are formated
|
||||
// keyname=:keyname with a comma seperating them
|
||||
func SqlGenKeys(i interface{}) string {
|
||||
func SQLGenKeys(i interface{}) string {
|
||||
var query []string
|
||||
v := reflect.ValueOf(i)
|
||||
for i := 0; i < v.NumField(); i++ {
|
||||
@@ -231,4 +231,4 @@ func SqlGenKeys(i interface{}) string {
|
||||
}
|
||||
}
|
||||
return strings.Join(query, ", ")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user