From c09b6fe3adffa3ce989e6173466c570a51b316fa Mon Sep 17 00:00:00 2001 From: Greg Date: Wed, 2 Feb 2022 12:31:06 -0800 Subject: [PATCH] fix typo (#3837) --- Source/SwiftLintFramework/Rules/Style/OpeningBraceRule.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/SwiftLintFramework/Rules/Style/OpeningBraceRule.swift b/Source/SwiftLintFramework/Rules/Style/OpeningBraceRule.swift index 35e249b1fe..d0e4920ec1 100644 --- a/Source/SwiftLintFramework/Rules/Style/OpeningBraceRule.swift +++ b/Source/SwiftLintFramework/Rules/Style/OpeningBraceRule.swift @@ -15,7 +15,7 @@ private extension SwiftLintFile { return match(pattern: #"(?:[^( ]|[\s(][\s]+)\{"#, excludingSyntaxKinds: SyntaxKind.commentAndStringKinds, excludingPattern: excludingPattern).compactMap { - if isAnonimousClosure(range: $0) { + if isAnonymousClosure(range: $0) { return nil } let branceRange = contents.bridge().range(of: "{", options: .literal, range: $0) @@ -23,7 +23,7 @@ private extension SwiftLintFile { } } - func isAnonimousClosure(range: NSRange) -> Bool { + func isAnonymousClosure(range: NSRange) -> Bool { let contentsBridge = contents.bridge() guard range.location != NSNotFound else { return false