Skip to content

Commit 599b80a

Browse files
authored
GODRIVER-2493 do not check encryptedFieldsMap in CreateEncryptedCollection (#1167)
1 parent e541e16 commit 599b80a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mongo/client_encryption.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ func (ce *ClientEncryption) CreateEncryptedCollection(ctx context.Context,
8282
return nil, nil, errors.New("nil CreateCollectionOptions")
8383
}
8484
ef := createOpts.EncryptedFields
85-
if ef == nil {
86-
// Otherwise, try to get EncryptedFields from EncryptedFieldsMap.
87-
ef = db.getEncryptedFieldsFromMap(coll)
88-
}
8985
if ef == nil {
9086
return nil, nil, errors.New("no EncryptedFields defined for the collection")
9187
}

0 commit comments

Comments
 (0)