Skip to content

Commit f6d223d

Browse files
staticcheck: fix warnings in x/mongo/driver
1 parent 7ed6928 commit f6d223d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

x/mongo/driver/operation_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ func TestOperation(t *testing.T) {
386386
rpWithTags := bsoncore.BuildDocumentFromElements(nil,
387387
bsoncore.AppendStringElement(nil, "mode", "secondaryPreferred"),
388388
bsoncore.BuildArrayElement(nil, "tags",
389-
bsoncore.Value{Type: bsoncore.TypeEmbeddedDocument,
389+
bsoncore.Value{
390+
Type: bsoncore.TypeEmbeddedDocument,
390391
Data: bsoncore.BuildDocumentFromElements(nil,
391392
bsoncore.AppendStringElement(nil, "disk", "ssd"),
392393
bsoncore.AppendStringElement(nil, "use", "reporting"),
@@ -408,7 +409,8 @@ func TestOperation(t *testing.T) {
408409
rpWithAllOptions := bsoncore.BuildDocumentFromElements(nil,
409410
bsoncore.AppendStringElement(nil, "mode", "secondaryPreferred"),
410411
bsoncore.BuildArrayElement(nil, "tags",
411-
bsoncore.Value{Type: bsoncore.TypeEmbeddedDocument,
412+
bsoncore.Value{
413+
Type: bsoncore.TypeEmbeddedDocument,
412414
Data: bsoncore.BuildDocumentFromElements(nil,
413415
bsoncore.AppendStringElement(nil, "disk", "ssd"),
414416
bsoncore.AppendStringElement(nil, "use", "reporting"),
@@ -695,7 +697,7 @@ func assertExhaustAllowedSet(t *testing.T, wm []byte, expected bool) {
695697
if !ok {
696698
t.Fatal("could not read wm header")
697699
}
698-
flags, wm, ok := wiremessage.ReadMsgFlags(wm)
700+
flags, _, ok := wiremessage.ReadMsgFlags(wm)
699701
if !ok {
700702
t.Fatal("could not read wm flags")
701703
}

0 commit comments

Comments
 (0)