Skip to content

Commit eb106c0

Browse files
committed
Lint fix
1 parent 6f850ab commit eb106c0

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Sources/SourceKitLSP/Swift/SwiftTestingScanner.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,16 +96,16 @@ struct TestingAttributeData {
9696
}
9797
}.flatMap(\.arguments)
9898
.compactMap {
99-
if let memberAccess = $0.expression.as(MemberAccessExprSyntax.self) {
100-
var components = memberAccess.components[...]
101-
if components.starts(with: ["Testing", "Tag"]) {
102-
components = components.dropFirst(2)
103-
} else if components.starts(with: ["Tag"]) {
104-
components = components.dropFirst(1)
105-
}
106-
return components.joined(separator: ".")
99+
if let memberAccess = $0.expression.as(MemberAccessExprSyntax.self) {
100+
var components = memberAccess.components[...]
101+
if components.starts(with: ["Testing", "Tag"]) {
102+
components = components.dropFirst(2)
103+
} else if components.starts(with: ["Tag"]) {
104+
components = components.dropFirst(1)
107105
}
108-
return nil
106+
return components.joined(separator: ".")
107+
}
108+
return nil
109109
}
110110

111111
self.isDisabled = traitArguments.lazy

0 commit comments

Comments
 (0)