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

MINOR: Code refactor - cleaning up some boolean assignments #2013

Closed
wants to merge 5 commits into from

Conversation

imandhan
Copy link
Contributor

No description provided.

Refactored some if else statements which had a boolean type and a boolean in the conditional, to remove explicitly stated booleans; cleaning up the code a little. For example - if (x==1) true else false is changed to (x==1)
Refactored some if else statements which had a boolean type and a boolean in the conditional, to remove explicitly stated booleans; cleaning up the code a little. For example - if (x==1) true else false is changed to (x==1)
Copy link
Contributor

@vahidhashemian vahidhashemian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just one minor comment

@@ -128,7 +128,7 @@ object ClientUtils extends Logging{
false
}
}
connected = if (channel == null) false else true
connected = (channel != null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think parenthesis are not necessary here.

@imandhan imandhan closed this Oct 17, 2016
@imandhan imandhan reopened this Oct 17, 2016
@hachikuji
Copy link
Contributor

LGTM. Thanks for the cleanup!

@asfgit asfgit closed this in 4e0b0b8 Oct 18, 2016
efeg pushed a commit to efeg/kafka that referenced this pull request May 29, 2024
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.

3 participants