mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-05 19:57:31 +00:00
Replace firstElementPassingTest with first(where).
This commit is contained in:
1 parent
56f597735a
commit
1e4a8a86ec
1 file changed
+1
-1
@@ -53,7 +53,7 @@ final class SingleLineTextFieldSizer {
|
||||
// that members of such a dictionary were mutated after insertion.
|
||||
// We use just an array of sizers now — which is totally fine,
|
||||
// because there’s only going to be like three of them.
|
||||
if let cachedSizer = sizers.firstElementPassingTest({ $0.font == font }) {
|
||||
if let cachedSizer = sizers.first(where: { $0.font == font }) {
|
||||
return cachedSizer
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user