Remove `else else` typo (#4933)

This commit is contained in:
Benny Wong 2023-04-25 14:03:25 -04:00 committed by GitHub
parent 4c04cdafa7
commit 172b8b8a94
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 9 deletions

View File

@ -12,17 +12,17 @@ struct SelfBindingRule: SwiftSyntaxCorrectableRule, ConfigurationProviderRule, O
kind: .style,
nonTriggeringExamples: [
Example("if let self = self { return }"),
Example("guard let self = self else else { return }"),
Example("guard let self = self else { return }"),
Example("if let this = this { return }"),
Example("guard let this = this else else { return }"),
Example("guard let this = this else { return }"),
Example("if let this = self { return }", configuration: ["bind_identifier": "this"]),
Example("guard let this = self else else { return }", configuration: ["bind_identifier": "this"])
Example("guard let this = self else { return }", configuration: ["bind_identifier": "this"])
],
triggeringExamples: [
Example("if let ↓`self` = self { return }"),
Example("guard let ↓`self` = self else else { return }"),
Example("guard let ↓`self` = self else { return }"),
Example("if let ↓this = self { return }"),
Example("guard let ↓this = self else else { return }"),
Example("guard let ↓this = self else { return }"),
Example("if let ↓self = self { return }", configuration: ["bind_identifier": "this"]),
Example("guard let ↓self = self else { return }", configuration: ["bind_identifier": "this"]),
Example("if let ↓self { return }", configuration: ["bind_identifier": "this"]),
@ -31,12 +31,12 @@ struct SelfBindingRule: SwiftSyntaxCorrectableRule, ConfigurationProviderRule, O
corrections: [
Example("if let ↓`self` = self { return }"):
Example("if let self = self { return }"),
Example("guard let ↓`self` = self else else { return }"):
Example("guard let self = self else else { return }"),
Example("guard let ↓`self` = self else { return }"):
Example("guard let self = self else { return }"),
Example("if let ↓this = self { return }"):
Example("if let self = self { return }"),
Example("guard let ↓this = self else else { return }"):
Example("guard let self = self else else { return }"),
Example("guard let ↓this = self else { return }"):
Example("guard let self = self else { return }"),
Example("if let ↓self = self { return }", configuration: ["bind_identifier": "this"]):
Example("if let this = self { return }", configuration: ["bind_identifier": "this"]),
Example("if let ↓self { return }", configuration: ["bind_identifier": "this"]):