mirror of
https://github.com/prometheus/prometheus.git
synced 2025-02-21 03:16:00 -08:00
lint
Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
This commit is contained in:
parent
013fdb9460
commit
b72f01414a
|
@ -330,8 +330,8 @@ func isCaseSensitive(reg *syntax.Regexp) bool {
|
|||
}
|
||||
|
||||
// tooManyMatches guards against creating too many set matches
|
||||
func tooManyMatches(matches []string, new ...string) bool {
|
||||
return len(matches)+len(new) > maxSetMatches
|
||||
func tooManyMatches(matches []string, added ...string) bool {
|
||||
return len(matches)+len(added) > maxSetMatches
|
||||
}
|
||||
|
||||
func (m *FastRegexMatcher) MatchString(s string) bool {
|
||||
|
|
Loading…
Reference in a new issue