Skip to content

Commit 9a5af48

Browse files
BupycHukademidoff
andauthored
Apply suggestions from code review
Co-authored-by: Alex Demidoff <[email protected]>
1 parent cd7c983 commit 9a5af48

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

exporter/diagnostic_data_collector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func (d *diagnosticDataCollector) collect(ch chan<- prometheus.Metric) {
117117
debugResult(logger, m)
118118

119119
// MongoDB 8.0 splits the diagnostic data into multiple blocks, so we need to merge them
120-
if _, ok := m["common"]; ok { //nolint:gomnd,mng
120+
if _, ok := m["common"]; ok {
121121
b := bson.M{}
122122
for _, mv := range m {
123123
block, ok := mv.(bson.M)

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func parseURIList(uriList []string, logger *logrus.Logger, splitCluster bool) []
270270

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

0 commit comments

Comments
 (0)