Skip to content

Commit

Permalink
simplify trailing-closure syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
QuietMisdreavus committed Dec 20, 2021
1 parent cf4bcbd commit aaadd9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ extension SymbolGraph.Symbol {
/// - Parameter identifier: The identifier string to check.
/// - Returns: The matching `KindIdentifier` case, or `nil` if there was no match.
private static func lookupIdentifier(identifier: String) -> KindIdentifier? {
allCases.first(where: { $0.identifier == identifier })
allCases.first { $0.identifier == identifier }
}

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

0 comments on commit aaadd9f

Please sign in to comment.