Skip to content

Commit

Permalink
Merge pull request #1460 from samsonasik/rem-ternary
Browse files Browse the repository at this point in the history
remove unneeded ternary check at HoneyPot::hasContent()
  • Loading branch information
jim-parry authored Nov 12, 2018
2 parents 7215030 + 091d890 commit f447d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Honeypot/Honeypot.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function __construct(BaseConfig $config)
*/
public function hasContent(RequestInterface $request)
{
return ( ! empty($request->getPost($this->config->name))) ? true : false;
return ! empty($request->getPost($this->config->name));
}

/**
Expand Down

0 comments on commit f447d6f

Please sign in to comment.