Refactor unnecessary else / elif when if block has a return statement#2717
Merged
wyli merged 2 commits intodeepsource-fix-1eb41095from Aug 7, 2021
Merged
Refactor unnecessary else / elif when if block has a return statement#2717wyli merged 2 commits intodeepsource-fix-1eb41095from
else / elif when if block has a return statement#2717wyli merged 2 commits intodeepsource-fix-1eb41095from
Conversation
Signed-off-by: Wenqi Li <[email protected]>
wyli
pushed a commit
that referenced
this pull request
Aug 7, 2021
* Remove unnecessary use of comprehension * Remove unnecessary comprehension (#2718) Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> * Refactor unnecessary `else` / `elif` when `if` block has a `return` statement (#2717) * Refactor unnecessary `else` / `elif` when `if` block has a `return` statement * Unnecessary `else`/`elif` used after `raise` PYL-R1720 Signed-off-by: Wenqi Li <[email protected]> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: Wenqi Li <[email protected]> * Replace ternary syntax with if expression (#2716) * Replace ternary syntax with if expression * fixes Duplicate dictionary keys PYL-W0109 Signed-off-by: Wenqi Li <[email protected]> * remove Unused variable data_ Signed-off-by: Wenqi Li <[email protected]> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: Wenqi Li <[email protected]> * [MONAI] python code formatting Signed-off-by: monai-bot <[email protected]> * fixes scaler type Signed-off-by: Wenqi Li <[email protected]> Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com> Co-authored-by: monai-bot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.