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

refactor: remove redundant if-statement #30311

Merged
merged 1 commit into from
Mar 20, 2022

Conversation

barredterra
Copy link
Collaborator

@barredterra barredterra commented Mar 20, 2022

The second condition is always true, so we can safely remove it.

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Mar 20, 2022
@barredterra barredterra removed the needs-tests This PR needs automated unit-tests. label Mar 20, 2022
@ankush ankush merged commit 0a015b7 into frappe:develop Mar 20, 2022
mergify bot pushed a commit that referenced this pull request Mar 20, 2022
ankush pushed a commit that referenced this pull request Mar 20, 2022
(cherry picked from commit 0a015b7)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
@barredterra barredterra deleted the redundant-if-statement branch March 20, 2022 17:06
KrithiRamani pushed a commit to KrithiRamani/erpnext that referenced this pull request Mar 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants