Skip to content

Commit

Permalink
GODRIVER-2493 do not check encryptedFieldsMap in CreateEncryptedColle…
Browse files Browse the repository at this point in the history
…ction (mongodb#1167)
  • Loading branch information
kevinAlbs authored Feb 1, 2023
1 parent e541e16 commit 599b80a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mongo/client_encryption.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,6 @@ func (ce *ClientEncryption) CreateEncryptedCollection(ctx context.Context,
return nil, nil, errors.New("nil CreateCollectionOptions")
}
ef := createOpts.EncryptedFields
if ef == nil {
// Otherwise, try to get EncryptedFields from EncryptedFieldsMap.
ef = db.getEncryptedFieldsFromMap(coll)
}
if ef == nil {
return nil, nil, errors.New("no EncryptedFields defined for the collection")
}
Expand Down

0 comments on commit 599b80a

Please sign in to comment.