orchestrator/clickhouse: simplify use of QueryRow()

No need to check for errors, this is also done when invoking Scan().
This commit is contained in:
Vincent Bernat
2024-04-05 22:00:06 +02:00
parent 032d28561c
commit 8d96aa070a
3 changed files with 3 additions and 17 deletions

View File

@@ -106,7 +106,6 @@ func TestFlowRate(t *testing.T) {
ctrl := gomock.NewController(t)
mockRow := mocks.NewMockRow(ctrl)
mockRow.EXPECT().Err().Return(nil)
mockRow.EXPECT().Scan(gomock.Any()).SetArg(0, float64(100.1)).Return(nil)
mockConn.EXPECT().
QueryRow(gomock.Any(),