Skip to content

Commit

Permalink
fix(contextcheck): not lint on Session call
Browse files Browse the repository at this point in the history
  • Loading branch information
SCedricThomas committed Feb 3, 2023
1 parent 15b8936 commit 1f3a69b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mongo/document/document.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// no-lint:contextcheck
package document

import (
Expand Down Expand Up @@ -203,6 +202,7 @@ func Count(ctx context.Context, collectionName string, query bson.M) (int, error

func CountUnscoped(ctx context.Context, collectionName string, query bson.M) (int, error) {
log := logger.Get(ctx)
// no-lint:contextcheck
c := mongo.Session(log).Clone().DB("").C(collectionName)

if query == nil {
Expand Down

0 comments on commit 1f3a69b

Please sign in to comment.