Skip to content

Commit

Permalink
fix new lints
Browse files Browse the repository at this point in the history
  • Loading branch information
majewsky committed Nov 11, 2024
1 parent 267fb34 commit 88af5eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion easypg/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func newTableSnapshot(t *testing.T, db *sql.DB, tableName string, keyColumnNames
failOnErr(t, rows.Scan(scanTarget...))
row := make(rowSnapshot, len(columnNames))
for idx, columnName := range columnNames {
row[columnName] = scanTarget[idx].(*sqlValueSerializer).Serialized
row[columnName] = scanTarget[idx].(*sqlValueSerializer).Serialized //nolint:errcheck // this type assertion cannot fail because of how the slice is constructed
}
result.Rows[row.Key(result.KeyColumnNames)] = row
}
Expand Down

0 comments on commit 88af5eb

Please sign in to comment.