Skip to content

Conversation

@aquality-automation
Copy link
Collaborator

No description provided.

*/
private void setState(boolean state) {
infoLoc(String.format("%1$s '%2$s'", localizationManager.getValue("loc.setting.value"), state));
if (state && !getState()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we user just state != getState() here and simplify it?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

refactored

private void setState(boolean state) {
infoLoc(String.format("%1$s '%2$s'", localizationManager.getValue("loc.setting.value"), state));
if (state && !getState()) {
infoLoc(String.format(localizationManager.getValue("loc.checkbox.check"), name, type, true));
Copy link
Contributor

Choose a reason for hiding this comment

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

The 3rd parameter true/false is redundant

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this logging has been removed

@paveliam paveliam merged commit d6ab7b8 into master Aug 14, 2019
@paveliam paveliam deleted the refactoring/safari-support branch August 14, 2019 14:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants