Remove redundant condition

[MAILPOET-2716]
This commit is contained in:
Pavel Dohnal
2020-04-21 14:51:31 +02:00
committed by Veljko V
parent 07f9d26d98
commit d586a18e52

View File

@ -137,7 +137,7 @@ class CronHelper {
*/
public function isDaemonAccessible() {
$daemon = $this->getDaemon();
if (!$daemon || !isset($daemon['run_accessed_at']) || $daemon['run_accessed_at'] === null) {
if (!$daemon || !isset($daemon['run_accessed_at'])) {
return null;
}
if ($daemon['run_accessed_at'] <= (int)$daemon['run_started_at']) {