Navigation Menu

Skip to content
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

Fix LGTM alerts #3732

Closed
wants to merge 2 commits into from
Closed

Fix LGTM alerts #3732

wants to merge 2 commits into from

Conversation

MarcelRaad
Copy link
Member

Fix "Comparison is always true" in transfer.c and "Empty block without comment" in ftplistparser.c. The rest is only about FIXMEs.

Just remove the redundant condition, which also makes it clear that
k->buf is always 0-terminated if this break is not hit.

Closes
Removing the block is consistent with line 954/957.

Closes
@bagder
Copy link
Member

bagder commented Apr 5, 2019

This pull request fixes 2 alerts when merging 74d8f7d into f5a7747 - view on LGTM.com

fixed alerts:

  • 1 for Comparison result is always the same
  • 1 for Empty branch of conditional

Comment posted by LGTM.com

MarcelRaad added a commit to MarcelRaad/curl that referenced this pull request Apr 5, 2019
Removing the block is consistent with line 954/957.

Closes curl#3732
@MarcelRaad MarcelRaad closed this in 1369b74 Apr 5, 2019
@MarcelRaad MarcelRaad deleted the lgtm branch April 5, 2019 10:57
@lock lock bot locked as resolved and limited conversation to collaborators Jul 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants