Skip to content

Commit

Permalink
[CLEANUP] Simplify if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Norre Mikkelsen committed Dec 26, 2020
1 parent cdf3233 commit adae10d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Classes/Crawler.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,8 @@ public function setDisabled(bool $disabled = true): void
{
if ($disabled) {
GeneralUtility::writeFile($this->processFilename, '');
} else {
if (is_file($this->processFilename)) {
unlink($this->processFilename);
}
} elseif (is_file($this->processFilename)) {
unlink($this->processFilename);
}
}

Expand Down

0 comments on commit adae10d

Please sign in to comment.