-
Notifications
You must be signed in to change notification settings - Fork 2.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
DRAFT: completion/sqlmap: simplify code flow (whitespace) #1962
Conversation
c4bec53
to
3e92bf8
Compare
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.
Another @tbhaxor file - Let them have a chance to review ...
Q: Shouldn't this PR be adding this to clean_files.txt
?
[edit] I see now you state that you didn't run this through shell-check, so thats likely why no clean_files.txt addition ...
3e92bf8
to
24339fd
Compare
I think that only fixing the whitespaces without addressing the shellcheck issues is not important enough to merge IMO. |
24339fd
to
b5d810f
Compare
Don't let perfect be the enemy of the good! I always do whitespace changes in a separate commit so that if it gets fingered in a Either way, I do expect to circle back to clean up the completion function. Just haven't gotten to it yet! |
Convert from indented if-block to return then unindented code. This should have basically one line change at the top, one line removed at the bottom, and then all whitespace. Apply `shfmt`, but `shellcheck` is an absolute mess, so don't add to `clean_files.txt` yet.
b5d810f
to
c4e4846
Compare
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.
Looks good.
Description
Convert from indented if-block to return then unindented code. This should have basically one line change at the top, one line removed at the bottom, and then all whitespace. And apply
shfmt
.Motivation and Context
Just cleaning up.
NOTE:
shellcheck
is very unhappy with this file, so I haven't done any fixes related to that.How Has This Been Tested?
Types of changes
Checklist:
clean_files.txt
and formatted it usinglint_clean_files.sh
.