From aaadd9faf969017368626896fd43a7cdf07801a1 Mon Sep 17 00:00:00 2001 From: Victoria Mitchell Date: Mon, 20 Dec 2021 10:36:09 -0700 Subject: [PATCH] simplify trailing-closure syntax --- .../SymbolKit/SymbolGraph/Symbol/Symbol+KindIdentifier.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/SymbolKit/SymbolGraph/Symbol/Symbol+KindIdentifier.swift b/Sources/SymbolKit/SymbolGraph/Symbol/Symbol+KindIdentifier.swift index d2e9385..80a4f02 100644 --- a/Sources/SymbolKit/SymbolGraph/Symbol/Symbol+KindIdentifier.swift +++ b/Sources/SymbolKit/SymbolGraph/Symbol/Symbol+KindIdentifier.swift @@ -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.