Skip to content

Commit

Permalink
Missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Apr 4, 2023
1 parent 38eebe6 commit 6b07ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/RebrandController.php
Expand Up @@ -102,7 +102,7 @@ public function actionDeleteSiteImage(): ?Response
$type = $this->request->getRequiredBodyParam('type');

if (!in_array($type, $this->_allowedTypes, true)) {
$this->asFailure(Craft::t('app', 'That is not an allowed image type.'));
return $this->asFailure(Craft::t('app', 'That is not an allowed image type.'));
}

FileHelper::clearDirectory(Craft::$app->getPath()->getRebrandPath() . '/' . $type);
Expand Down

0 comments on commit 6b07ee1

Please sign in to comment.