-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Minor cleanups in SqlFormatter #9501
Conversation
What’s the purpose of those assertions? Indent can’t be anything other than 0 already, since that’s how the visitor gets called in the first place, and it’s private to this class, so it can’t be misused. |
@@ -1282,7 +1312,7 @@ private static String formatPrincipal(PrincipalSpecification principal) | |||
} | |||
|
|||
@Override | |||
protected Void visitDropTable(DropTable node, Integer context) | |||
protected Void visitDropTable(DropTable node, Integer indent) |
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.
checkArgument
? (and below)
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.
Yeah. Sequence of private
methods fooled me. We are already past public interface.
Just a sanity check. It is not obvious from the code flow that we can not land in the |
483d144
to
d95e647
Compare
d95e647
to
9f728ce
Compare
I dropped checks as thy do play well with |
No description provided.