mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-13 14:57:40 -08:00
Fix missing return on error
This commit is contained in:
parent
e005f939fd
commit
36ec8ba460
|
@ -370,7 +370,7 @@ func (ev *evalCmd) compareResult(result model.Value) error {
|
||||||
|
|
||||||
case model.Vector:
|
case model.Vector:
|
||||||
if !ev.instant {
|
if !ev.instant {
|
||||||
fmt.Errorf("received instant result on range evaluation")
|
return fmt.Errorf("received instant result on range evaluation")
|
||||||
}
|
}
|
||||||
seen := map[model.Fingerprint]bool{}
|
seen := map[model.Fingerprint]bool{}
|
||||||
for pos, v := range val {
|
for pos, v := range val {
|
||||||
|
|
Loading…
Reference in a new issue