Skip to content

Remove unnecessary ternary expression in whois lookup#175

Open
vcokltfre wants to merge 1 commit intouetchy:masterfrom
vcokltfre:patch-1
Open

Remove unnecessary ternary expression in whois lookup#175
vcokltfre wants to merge 1 commit intouetchy:masterfrom
vcokltfre:patch-1

Conversation

@vcokltfre
Copy link

This minor PR cleans a ternary expression into a simple comparison for improved clarity, as it's easier to understand what logic is being followed this way, rather than having to try and work out a ternary in your head, and also because the result of the comparison is already a boolean value it makes sense to use that value directly.

@vcokltfre vcokltfre requested a review from uetchy as a code owner November 19, 2022 11:09
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.

2 participants