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

Misc fixes #343

Merged
merged 3 commits into from Oct 8, 2018
Merged

Misc fixes #343

merged 3 commits into from Oct 8, 2018

Conversation

tasleson
Copy link
Member

@tasleson tasleson commented Oct 1, 2018

Correct some typos and unreachable code.

This was resulting in unreachable code for 'HTTP error' in desc.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
Signed-off-by: Tony Asleson <tasleson@redhat.com>
From looking at the code, I believe the intention was to retun 'None'
if we get a parse error for a line in the export data.  Otherwise,
we have unreachable code as the 'return None' would never execute.

Signed-off-by: Tony Asleson <tasleson@redhat.com>
@@ -175,7 +175,7 @@ def _parse_export(parts=None):
anonuid, anongid, optionstring)
return result
except:
raise
pass
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jumitche Does this look correct to you?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that looks okay.

@cathay4t cathay4t mentioned this pull request Oct 6, 2018
@@ -175,7 +175,7 @@ def _parse_export(parts=None):
anonuid, anongid, optionstring)
return result
except:
raise
pass
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that looks okay.

@cathay4t
Copy link
Contributor

cathay4t commented Oct 8, 2018

@jumitche Thank you.

@cathay4t cathay4t merged commit 785a6b8 into libstorage:master Oct 8, 2018
@tasleson tasleson deleted the misc_fixes branch November 6, 2018 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants