Skip to content

RA-1816: Return of boolean expressions should not be wrapped into an …#84

Merged
debicki merged 2 commits intoopenmrs:masterfrom
kdaud:RA-1816
Nov 24, 2020
Merged

RA-1816: Return of boolean expressions should not be wrapped into an …#84
debicki merged 2 commits intoopenmrs:masterfrom
kdaud:RA-1816

Conversation

@kdaud
Copy link
Copy Markdown
Member

@kdaud kdaud commented Nov 23, 2020

return true;
}
return false;
return (isUserLocPropEnabled && Context.isAuthenticated() && Context.getUserContext().getLocationId() == null);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

cc @sacull

return true;
}
return false;
return (isUserLocPropEnabled && Context.isAuthenticated() && Context.getUserContext().getLocationId() == null);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why not?

Suggested change
return (isUserLocPropEnabled && Context.isAuthenticated() && Context.getUserContext().getLocationId() == null);
return isUserLocPropEnabled && Context.isAuthenticated() && Context.getUserContext().getLocationId() == null;

Copy link
Copy Markdown
Member Author

@kdaud kdaud Nov 24, 2020

Choose a reason for hiding this comment

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

Have addressed the comment and updated the PR
cc: @sacull

@debicki
Copy link
Copy Markdown
Member

debicki commented Nov 24, 2020

It looks good to me now. ;)

@dkayiwa
Copy link
Copy Markdown
Member

dkayiwa commented Nov 24, 2020

@sacull just given you write access to this repository and the corresponding JIRA ticket. So feel free to do the needful. 😊

@debicki
Copy link
Copy Markdown
Member

debicki commented Nov 24, 2020

Not again. You don't like me, @dkayiwa, if you keep giving me more work. ;)

@debicki debicki merged commit 899338e into openmrs:master Nov 24, 2020
@dkayiwa
Copy link
Copy Markdown
Member

dkayiwa commented Nov 24, 2020

@sacull you made me laugh my head off! Loool. 🤣
I promise to treat you better next time. 😆

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.

4 participants