Skip to content

Commit

Permalink
chore: some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
raj-k-singh committed Sep 17, 2024
1 parent 104999d commit ec32701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/clickhouselogsexporter/logsv2/fingerprint.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func (node *DimensionHierarchyNode) Identifier(attributes map[string]any) []IdLa
return result
}

// Get list of synonymous labels in a hierarchy for `attribute` or `nil
// Get list of synonymous labels in a hierarchy for `attribute` or `nil`
func (node *DimensionHierarchyNode) Synonyms(attribute string) []string {
if node == nil {
return nil
Expand All @@ -58,7 +58,7 @@ func (node *DimensionHierarchyNode) Synonyms(attribute string) []string {

for _, h := range node.subHierachies {
synonyms := h.Synonyms(attribute)
if synonyms != nil {
if len(synonyms) > 0 {
return synonyms
}
}
Expand Down

0 comments on commit ec32701

Please sign in to comment.