Skip to content

Commit 39c9d97

Browse files
committed
Removed wrong rationale
1 parent 3d8f400 commit 39c9d97

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Source/SwiftLintBuiltInRules/Rules/Performance/ContainsOverFirstNotNilRule.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ struct ContainsOverFirstNotNilRule: Rule {
88
identifier: "contains_over_first_not_nil",
99
name: "Contains over First not Nil",
1010
description: "Prefer `contains` over `first(where:) != nil` and `firstIndex(where:) != nil`.",
11-
rationale: """
12-
`filter` always needs to scan the entire collection, whereas `contains` can exit early as
13-
soon as a match is found.
14-
""",
1511
kind: .performance,
1612
nonTriggeringExamples: ["first", "firstIndex"].flatMap { method in
1713
[

0 commit comments

Comments
 (0)