Skip to content

Commit

Permalink
Take care of negative case first, better practice.
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Jul 22, 2024
1 parent b580872 commit 2a7685d
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 {
dropOriginalMetrics[dropMetric] = true
if !ok {
continue
}
continue
dropOriginalMetrics[dropMetric] = true
}

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

0 comments on commit 2a7685d

Please sign in to comment.