fix: linter issue

Signed-off-by: Dinifarb <andreas.vogt89@bluewin.ch>
This commit is contained in:
Dinifarb
2023-07-29 20:53:38 +02:00
parent f9361bb684
commit 7876a465ca
2 changed files with 10 additions and 5 deletions

View File

@@ -177,7 +177,10 @@ func TestMultipleDirectories(t *testing.T) {
for {
var metric dto.Metric
val := <-metrics
val.Write(&metric)
err := val.Write(&metric)
if err != nil {
t.Errorf("Unexpected error %s", err)
}
got += metric.String()
}
}()
@@ -208,7 +211,10 @@ func TestDuplicateFileName(t *testing.T) {
for {
var metric dto.Metric
val := <-metrics
val.Write(&metric)
err := val.Write(&metric)
if err != nil {
t.Errorf("Unexpected error %s", err)
}
got += metric.String()
}
}()