Skip to content

Commit

Permalink
Fix PrivateActionRule in Swift 5.2 (realm#3092)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelofabri authored Feb 10, 2020
1 parent 4e84992 commit c5e7bb3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/SwiftLintFramework/Rules/Lint/PrivateActionRule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public struct PrivateActionRule: ASTRule, OptInRule, ConfigurationProviderRule,
let offset = dictionary.offset,
kind == .functionMethodInstance,
dictionary.enclosedSwiftAttributes.contains(.ibaction),
let controlLevel = dictionary.accessibility,
controlLevel.isPrivate == false
dictionary.accessibility?.isPrivate != true
else {
return []
}
Expand Down

0 comments on commit c5e7bb3

Please sign in to comment.