Skip to content

Commit

Permalink
fix typo (realm#3837)
Browse files Browse the repository at this point in the history
  • Loading branch information
gsbernstein authored Feb 2, 2022
1 parent 1864d77 commit c09b6fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SwiftLintFramework/Rules/Style/OpeningBraceRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ 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)
return ($0, branceRange.location)
}
}

func isAnonimousClosure(range: NSRange) -> Bool {
func isAnonymousClosure(range: NSRange) -> Bool {
let contentsBridge = contents.bridge()
guard range.location != NSNotFound else {
return false
Expand Down

0 comments on commit c09b6fe

Please sign in to comment.