Skip to content

Commit 91b6b3f

Browse files
committed
Fix FindOneAndReplace
1 parent b558119 commit 91b6b3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go/ql/test/library-tests/semmle/go/dataflow/flowsources/local/database/test_mongo_driver_mongo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func test_mongo_driver_mongo_collection(coll *mongo.Collection, ctx context.Cont
5252

5353
sink(user2) // $ hasTaintFlow="user2"
5454

55-
single3 := coll.FindOneAndReplace(ctx, nil) // $ source
55+
single3 := coll.FindOneAndReplace(ctx, nil, nil) // $ source
5656
if err != nil {
5757
return
5858
}

0 commit comments

Comments
 (0)