Skip to content

Commit

Permalink
fix: address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulguptajss committed Jun 28, 2024
1 parent bfbb4bc commit 4d050a8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions cmd/collectors/volume.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,17 +156,21 @@ func ProcessFlexGroupData(logger *logging.Logger, data *matrix.Matrix, style str
logger.Error().Err(err).Msg("error")
}
} else {
if recordFGFalse[key] == nil {
recordFGFalse[key] = set.New()
s, ok := recordFGFalse[key]
if !ok {
s = set.New()
recordFGFalse[key] = s
}
recordFGFalse[key].Add(fgm.GetName())
s.Add(fgm.GetName())
}
}
} else {
if recordFGFalse[key] == nil {
recordFGFalse[key] = set.New()
s, ok := recordFGFalse[key]
if !ok {
s = set.New()
recordFGFalse[key] = s
}
recordFGFalse[key].Add(fgm.GetName())
s.Add(fgm.GetName())
}
}
}
Expand Down

0 comments on commit 4d050a8

Please sign in to comment.