Skip to content

Commit aaadd9f

Browse files
simplify trailing-closure syntax
1 parent cf4bcbd commit aaadd9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SymbolKit/SymbolGraph/Symbol/Symbol+KindIdentifier.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extension SymbolGraph.Symbol {
6868
/// - Parameter identifier: The identifier string to check.
6969
/// - Returns: The matching `KindIdentifier` case, or `nil` if there was no match.
7070
private static func lookupIdentifier(identifier: String) -> KindIdentifier? {
71-
allCases.first(where: { $0.identifier == identifier })
71+
allCases.first { $0.identifier == identifier }
7272
}
7373

7474
/// Compares the given identifier against the known default symbol kinds, and returns whether it matches one.

0 commit comments

Comments
 (0)