-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Treat conditional code as if it was always active #5581
Treat conditional code as if it was always active #5581
Conversation
Generated by 🚫 Danger |
77a26a3
to
686f371
Compare
I'd appreciate your feedback on this @mildm8nnered as you have provided the initial implementation of this rule. This is the last issue reported after the 0.55.0 release. Once it's merged, I may cut 0.55.1. |
var varDecls = [VariableDeclSyntax]() | ||
|
||
override func visitAny(_ node: Syntax) -> SyntaxVisitorContinueKind { | ||
if node.isProtocol((any NamedDeclSyntax).self) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ternary operator and save on the return
s here potentially
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Fixes #5574.