Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Demidoff <[email protected]>
  • Loading branch information
BupycHuk and ademidoff authored Nov 14, 2024
1 parent cd7c983 commit 9a5af48
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exporter/diagnostic_data_collector.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (d *diagnosticDataCollector) collect(ch chan<- prometheus.Metric) {
debugResult(logger, m)

// MongoDB 8.0 splits the diagnostic data into multiple blocks, so we need to merge them
if _, ok := m["common"]; ok { //nolint:gomnd,mng
if _, ok := m["common"]; ok {
b := bson.M{}
for _, mv := range m {
block, ok := mv.(bson.M)
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ func parseURIList(uriList []string, logger *logrus.Logger, splitCluster bool) []

// buildURIManually builds the URI manually by checking if the user and password are supplied
func buildURIManually(uri string, user string, password string) string {
uriArray := strings.SplitN(uri, "://", 2)
uriArray := strings.SplitN(uri, "://", 2) //nolint:mnd
prefix := uriArray[0] + "://"
uri = uriArray[1]

Expand Down

0 comments on commit 9a5af48

Please sign in to comment.