Skip to content

Reducing duplicate code.#51

Open
TheRealVira wants to merge 1 commit intoreddit:masterfrom
TheRealVira:patch-2
Open

Reducing duplicate code.#51
TheRealVira wants to merge 1 commit intoreddit:masterfrom
TheRealVira:patch-2

Conversation

@TheRealVira
Copy link

I have moved the isVisible declaration outside the switch to enhance readability and reduce duplicate code. Since iconView is only true when textView isn't the assignment of iconView.isVisible is the inverse of textView.isVisible.

I have moved the isVisible declaration outside the switch to enhance readability and reduce duplicate code. Since iconView is only true when textView isn't the assignment of iconView.isVisible is the inverse of textView.isVisible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant