Skip to content

Commit bf06103

Browse files
committed
PMM-14431 Lint.
1 parent e10e747 commit bf06103

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exporter/metrics.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func GetAllIndexesForCollections(ctx context.Context, client *mongo.Client, coll
311311
var indexNames []string
312312

313313
for _, dbCollection := range collections {
314-
parts := strings.SplitN(dbCollection, ".", 2)
314+
parts := strings.SplitN(dbCollection, ".", 2) //nolint:mnd
315315
if len(parts) != 2 {
316316
continue // skip invalid format
317317
}
@@ -324,7 +324,7 @@ func GetAllIndexesForCollections(ctx context.Context, client *mongo.Client, coll
324324
// skip collections where indexes cannot be listed (e.g., views, system collections)
325325
continue
326326
}
327-
defer cursor.Close(ctx)
327+
defer cursor.Close(ctx) //nolint:errcheck
328328

329329
for cursor.Next(ctx) {
330330
var idxDoc struct {

0 commit comments

Comments
 (0)