mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
compactMap
This commit is contained in:
@@ -62,7 +62,7 @@ public struct LowerACLThanParentRule: OptInRule, ConfigurationProviderRule {
|
||||
violationOffset = element.offset
|
||||
}
|
||||
|
||||
return [violationOffset].flatMap { $0 } + self.validateACL(isHigherThan: accessibility, in: element)
|
||||
return [violationOffset].compactMap { $0 } + self.validateACL(isHigherThan: accessibility, in: element)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user