Skip to content

Commit

Permalink
fix countFields func
Browse files Browse the repository at this point in the history
  • Loading branch information
marriva committed Oct 26, 2022
1 parent 1aeef54 commit bbef74c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion collector/collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ func countFields(m map[string]interface{}, count float64) float64 {
case map[string]interface{}:
count = countFields(v, count)
case string:
return count + 1
delete(m, "type")
count++
}
}

Expand Down

0 comments on commit bbef74c

Please sign in to comment.