Skip to content

Commit

Permalink
Revert "Take care of negative case first, better practice."
Browse files Browse the repository at this point in the history
This reverts commit 2a7685d.
  • Loading branch information
musa-asad committed Jul 22, 2024
1 parent 2a7685d commit 0e979d0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ func getDropOriginalMetrics(conf *confmap.Conf) map[string]bool {
for _, dropMetric := range dropMetrics {
if _, in := toDropMap[category]; in {
dropMetric, ok := dropMetric.(string)
if !ok {
continue
if ok {
dropOriginalMetrics[dropMetric] = true
}
dropOriginalMetrics[dropMetric] = true
continue
}

measurements := common.GetArray[any](conf, measurementCfgKey)
Expand Down

0 comments on commit 0e979d0

Please sign in to comment.