mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
fix lint issue
Signed-off-by: Vandit Singh <vanditsinghkv@gmail.com>
This commit is contained in:
parent
beb198df50
commit
e8afb9c990
|
@ -2120,7 +2120,7 @@ func toHintLimit(limit int) int {
|
||||||
}
|
}
|
||||||
|
|
||||||
// truncateResults truncates result for queryRange() and query().
|
// truncateResults truncates result for queryRange() and query().
|
||||||
// No truncation for other types. (Scalars or Strings)
|
// No truncation for other types(Scalars or Strings).
|
||||||
func truncateResults(result *promql.Result, limit int) *promql.Result {
|
func truncateResults(result *promql.Result, limit int) *promql.Result {
|
||||||
switch v := result.Value.(type) {
|
switch v := result.Value.(type) {
|
||||||
case promql.Matrix:
|
case promql.Matrix:
|
||||||
|
|
Loading…
Reference in a new issue