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

Fixed a silly boolean practice using uint8_t #1165

Merged
merged 1 commit into from
Sep 16, 2018

Conversation

hugbubby
Copy link
Member

@hugbubby hugbubby commented Sep 16, 2018

Very small two line change, this bool/if statement was written in a very convoluted way.


This change is Reviewable

@iphydf iphydf added this to the v0.2.x milestone Sep 16, 2018
@@ -2590,8 +2590,8 @@ uint32_t messenger_run_interval(const Messenger *m)
void do_messenger(Messenger *m, void *userdata)
{
// Add the TCP relays, but only if this is the first time calling do_messenger
if (m->has_added_relays == 0) {
m->has_added_relays = 1;
if (!(m->has_added_relays)) {
Copy link
Member

Choose a reason for hiding this comment

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

Remove extra ().

@iphydf iphydf merged commit 889e89b into TokTok:master Sep 16, 2018
@robinlinden robinlinden modified the milestones: v0.2.x, v0.2.8 Oct 7, 2018
This pull request was closed.
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