mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
lib/storage: remove extra error check (#3396)
This commit is contained in:
parent
92a7f71ee1
commit
d4808d5b84
1 changed files with 0 additions and 3 deletions
|
@ -964,9 +964,6 @@ func testStorageRegisterMetricNames(s *Storage) error {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error in SearchMetricNames: %w", err)
|
return fmt.Errorf("error in SearchMetricNames: %w", err)
|
||||||
}
|
}
|
||||||
if err != nil {
|
|
||||||
return fmt.Errorf("cannot unmarshal metric names: %w", err)
|
|
||||||
}
|
|
||||||
if len(metricNames) < metricsPerAdd {
|
if len(metricNames) < metricsPerAdd {
|
||||||
return fmt.Errorf("unexpected number of metricNames returned from SearchMetricNames; got %d; want at least %d", len(metricNames), int(metricsPerAdd))
|
return fmt.Errorf("unexpected number of metricNames returned from SearchMetricNames; got %d; want at least %d", len(metricNames), int(metricsPerAdd))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue