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

Empty check for default action parameter #150

Merged
merged 1 commit into from
Jun 26, 2018
Merged

Conversation

pulkit8
Copy link
Contributor

@pulkit8 pulkit8 commented Jun 25, 2018

Default action not empty check (updated clean code)

Default action not empty check (updated clean code)
@pulkit8 pulkit8 changed the title Update MessageElement.php Empty check for default action parameter Jun 25, 2018
$this->default_action = $default_action;
if (!empty($default_action)) {
$this->default_action = $default_action;
}
Copy link
Contributor

@o2-web o2-web Jun 25, 2018

Choose a reason for hiding this comment

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

I think lines 70,71,72 are not required because it has no effect

can be left as before $this->default_action = $default_action;

@wittfabian wittfabian merged commit 5865f4e into pimax:master Jun 26, 2018
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