Skip to content

refactor : replace double [if] with one [if] - #3080

Open
alamenai wants to merge 1 commit into
reactjs:mainfrom
alamenai:patch-1
Open

refactor : replace double [if] with one [if]#3080
alamenai wants to merge 1 commit into
reactjs:mainfrom
alamenai:patch-1

Conversation

@alamenai

@alamenai alamenai commented Jul 4, 2020

Copy link
Copy Markdown

The previous double if are redundant because they return the same result.
We combine their conditions together in single if.

The previous `if` are redundant because they return the same result.
We combine their conditions together in single `if`.
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