@@ -184,7 +184,7 @@ public struct ServerDescription {
184
184
extension ServerDescription : Equatable {
185
185
public static func == ( lhs: ServerDescription , rhs: ServerDescription ) -> Bool {
186
186
// Compare everything except `error` it is always nil and `MongoError`s are not `Equatable`
187
- return lhs. connectionId == rhs. connectionId &&
187
+ lhs. connectionId == rhs. connectionId &&
188
188
lhs. roundTripTime == rhs. roundTripTime &&
189
189
lhs. lastWriteDate == rhs. lastWriteDate &&
190
190
lhs. opTime == rhs. opTime &&
@@ -274,7 +274,7 @@ public struct TopologyDescription {
274
274
/// Returns `true` if the topology has a readable server available, and `false` otherwise.
275
275
public func hasReadableServer( ) -> Bool {
276
276
// (this function should take in an optional ReadPreference, but we have yet to implement that type.)
277
- return [ . single, . replicaSetWithPrimary, . sharded] . contains ( self . type)
277
+ [ . single, . replicaSetWithPrimary, . sharded] . contains ( self . type)
278
278
}
279
279
280
280
/// Returns `true` if the topology has a writable server available, and `false` otherwise.
@@ -304,7 +304,7 @@ public struct TopologyDescription {
304
304
extension TopologyDescription : Equatable {
305
305
public static func == ( lhs: TopologyDescription , rhs: TopologyDescription ) -> Bool {
306
306
// Compare everything except `error` it is always nil and `MongoError`s are not `Equatable`
307
- return lhs. type == rhs. type &&
307
+ lhs. type == rhs. type &&
308
308
lhs. setName == rhs. setName &&
309
309
lhs. maxSetVersion == rhs. maxSetVersion &&
310
310
lhs. maxElectionId == rhs. maxElectionId &&
0 commit comments