Skip to content

Commit

Permalink
Fix linting failures of incorrect indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
crobert-1 committed Mar 2, 2022
1 parent 566fb25 commit e785391
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions internal/coreinternal/processor/filtermetric/filtermetric.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func CreateMatchPropertiesFromDefault(properties *filterconfig.MatchProperties)
}

return &MatchProperties{
MatchType: MatchType(properties.Config.MatchType),
MatchType: MatchType(properties.Config.MatchType),
RegexpConfig: properties.Config.RegexpConfig,
MetricNames: properties.MetricNames,
Expressions: properties.Expressions,
Expand All @@ -55,18 +55,18 @@ func SkipMetric(include, exclude Matcher, metric pdata.Metric) bool {
if include != nil {
// A false (or an error) returned in this case means the metric should not be processed.
i, err := include.MatchMetric(metric)
if !i || err != nil {
if !i || err != nil {
return true
}
}

if exclude != nil {
// A true (or an error) returned in this case means the span should not be processed.
e, err := exclude.MatchMetric(metric);
if e || err != nil {
e, err := exclude.MatchMetric(metric)
if e || err != nil {
return true
}
}

return false
}
}

0 comments on commit e785391

Please sign in to comment.