@@ -20,16 +20,6 @@ const (
2020 isoSelectFields = `id, name, version, arch, edition, file_type, filename, file_path, download_link,
2121 size_bytes, checksum, checksum_type, download_url, checksum_url,
2222 status, progress, error_message, created_at, completed_at`
23-
24- isoInsertFields = `id, name, version, arch, edition, file_type, filename, file_path, download_link,
25- size_bytes, checksum, checksum_type, download_url, checksum_url,
26- status, progress, error_message, created_at, completed_at`
27-
28- isoUpdateFields = `name = ?, version = ?, arch = ?, edition = ?, file_type = ?,
29- filename = ?, file_path = ?, download_link = ?,
30- size_bytes = ?, checksum = ?, checksum_type = ?,
31- download_url = ?, checksum_url = ?, status = ?, progress = ?,
32- error_message = ?, completed_at = ?`
3323)
3424
3525// DB wraps the SQLite database connection.
@@ -219,7 +209,7 @@ func (db *DB) GetISO(id string) (*models.ISO, error) {
219209// ListISOs retrieves all ISOs ordered by created_at DESC.
220210func (db * DB ) ListISOs () ([]models.ISO , error ) {
221211 query := fmt .Sprintf ("SELECT %s FROM isos ORDER BY created_at DESC" , isoSelectFields )
222- rows , err := db .conn .Query (query )
212+ rows , err := db .conn .Query (query ) //nolint:sqlclosecheck // False positive: rows are closed via deferred closure below
223213 if err != nil {
224214 return nil , fmt .Errorf ("failed to query ISO list: %w" , err )
225215 }
0 commit comments