Skip to content

Commit 95ed2f7

Browse files
committed
Fix compilation warning in BSONEncoder
1 parent 1e756b3 commit 95ed2f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/MongoSwift/BSON/BSONEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ extension _BSONEncoder {
502502
if let bsonValue = value as? BSONValue {
503503
return bsonValue
504504
} else if let bsonArray = value as? [BSONValue] {
505-
return try bsonArray.map { $0.bson }
505+
return bsonArray.map { $0.bson }
506506
}
507507

508508
// The value should request a container from the _BSONEncoder.

0 commit comments

Comments
 (0)