Skip to content

Commit 34c035d

Browse files
authored
Return series even when duplicated (#414)
The engine returns an error when duplicate series are present in the final result. It would still be useful to return the result in addition to the error for debugging purposes. Signed-off-by: Filip Petkovski <[email protected]>
1 parent 8c1e6ae commit 34c035d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

engine/engine.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,10 +451,10 @@ loop:
451451
matrix = append(matrix, s)
452452
}
453453
sort.Sort(matrix)
454+
ret.Value = matrix
454455
if matrix.ContainsSameLabelset() {
455456
return newErrResult(ret, extlabels.ErrDuplicateLabelSet)
456457
}
457-
ret.Value = matrix
458458
return ret
459459
}
460460

0 commit comments

Comments
 (0)