Skip to content

Commit

Permalink
Fix return
Browse files Browse the repository at this point in the history
  • Loading branch information
jissereitsma committed Jan 13, 2025
1 parent babde33 commit 3b2f023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Plugin/ConvertAfterImageSave.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ public function __construct(
public function afterSave(Image $subject, $return, $destination = null)
{
if (!$this->config->enabled()) {
return;
return $return;
}

if (!$this->config->convertImagesOnSave()) {
return;
return $return;
}

$image = $this->imageFactory->createFromPath((string)$destination);
Expand Down

0 comments on commit 3b2f023

Please sign in to comment.