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

omit unnecessary conditional - deadcode reported by static scanner #217

Merged
merged 1 commit into from Jul 29, 2021

Conversation

richm
Copy link
Contributor

@richm richm commented Jul 28, 2021

The list comprehension does not need the conditional evaluation since
the condition is already checked by the if clause. This code
triggers a warning by a static code checker.

Also adds the scsi and nvme tests for tests_lvm_percent_size
which was added by an earlier commit.

https://bugzilla.redhat.com/show_bug.cgi?id=1985572

The list comprehension does not need the conditional evaluation since
the condition is already checked by the `if` clause.  This code
triggers a warning by a static code checker.

Also adds the scsi and nvme tests for tests_lvm_percent_size
which was added by an earlier commit.
@richm richm requested review from dwlehman and japokorn July 28, 2021 20:18
Copy link
Contributor

@spetrosi spetrosi left a comment

Choose a reason for hiding this comment

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

lgtm

@richm richm merged commit 35fe83d into linux-system-roles:master Jul 29, 2021
@richm richm deleted the bz1985572-1985571 branch July 29, 2021 21:10
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

2 participants