mirror of
https://github.com/prometheus/prometheus
synced 2024-12-25 07:52:28 +00:00
Fix golint issue caused by typo (#7475)
Signed-off-by: Guangwen Feng <fenggw-fnst@cn.fujitsu.com>
This commit is contained in:
parent
800c0aefcf
commit
9ab072b470
@ -48,21 +48,21 @@ func (i Item) String() string {
|
||||
return fmt.Sprintf("%q", i.Val)
|
||||
}
|
||||
|
||||
// isOperator returns true if the Item corresponds to a arithmetic or set operator.
|
||||
// IsOperator returns true if the Item corresponds to a arithmetic or set operator.
|
||||
// Returns false otherwise.
|
||||
func (i ItemType) IsOperator() bool { return i > operatorsStart && i < operatorsEnd }
|
||||
|
||||
// isAggregator returns true if the Item belongs to the aggregator functions.
|
||||
// IsAggregator returns true if the Item belongs to the aggregator functions.
|
||||
// Returns false otherwise
|
||||
func (i ItemType) IsAggregator() bool { return i > aggregatorsStart && i < aggregatorsEnd }
|
||||
|
||||
// isAggregator returns true if the Item is an aggregator that takes a parameter.
|
||||
// IsAggregatorWithParam returns true if the Item is an aggregator that takes a parameter.
|
||||
// Returns false otherwise
|
||||
func (i ItemType) IsAggregatorWithParam() bool {
|
||||
return i == TOPK || i == BOTTOMK || i == COUNT_VALUES || i == QUANTILE
|
||||
}
|
||||
|
||||
// isKeyword returns true if the Item corresponds to a keyword.
|
||||
// IsKeyword returns true if the Item corresponds to a keyword.
|
||||
// Returns false otherwise.
|
||||
func (i ItemType) IsKeyword() bool { return i > keywordsStart && i < keywordsEnd }
|
||||
|
||||
@ -77,7 +77,7 @@ func (i ItemType) IsComparisonOperator() bool {
|
||||
}
|
||||
}
|
||||
|
||||
// isSetOperator returns whether the Item corresponds to a set operator.
|
||||
// IsSetOperator returns whether the Item corresponds to a set operator.
|
||||
func (i ItemType) IsSetOperator() bool {
|
||||
switch i {
|
||||
case LAND, LOR, LUNLESS:
|
||||
|
Loading…
Reference in New Issue
Block a user