Skip to content

Commit 96cea8f

Browse files
committed
Fixed trailing whitespace
1 parent 09f3294 commit 96cea8f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Source/SwiftLintBuiltInRules/Rules/Performance/ContainsOverFilterCountRule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct ContainsOverFilterCountRule: Rule {
99
name: "Contains over Filter Count",
1010
description: "Prefer `contains` over comparing `filter(where:).count` to 0",
1111
rationale: """
12-
`filter` always needs to scan the entire collection, whereas `contains` can exit early as
12+
`filter` always needs to scan the entire collection, whereas `contains` can exit early as
1313
soon as a match is found.
1414
""",
1515
kind: .performance,

Source/SwiftLintBuiltInRules/Rules/Performance/ContainsOverFilterIsEmptyRule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct ContainsOverFilterIsEmptyRule: Rule {
99
name: "Contains over Filter is Empty",
1010
description: "Prefer `contains` over using `filter(where:).isEmpty`",
1111
rationale: """
12-
`filter` always needs to scan the entire collection, whereas `contains` can exit early as
12+
`filter` always needs to scan the entire collection, whereas `contains` can exit early as
1313
soon as a match is found.
1414
""",
1515
kind: .performance,

Source/SwiftLintBuiltInRules/Rules/Performance/ContainsOverFirstNotNilRule.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ struct ContainsOverFirstNotNilRule: Rule {
99
name: "Contains over First not Nil",
1010
description: "Prefer `contains` over `first(where:) != nil` and `firstIndex(where:) != nil`.",
1111
rationale: """
12-
`filter` always needs to scan the entire collection, whereas `contains` can exit early as
12+
`filter` always needs to scan the entire collection, whereas `contains` can exit early as
1313
soon as a match is found.
1414
""",
1515
kind: .performance,

0 commit comments

Comments
 (0)