Skip to content

Commit

Permalink
remove redundant else
Browse files Browse the repository at this point in the history
  • Loading branch information
samayo committed Jun 23, 2018
1 parent 1d6e649 commit c99c961
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/utils/func.image-crop.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ function crop($image, $mimeType, $imgWidth, $imgHeight, $newWidth, $newHeight)

if (!$temp) {
throw new \Exception("Failed to crop image. Please pass the right parameters");
} else {
}
imagejpeg($temp, $image);
}
}

0 comments on commit c99c961

Please sign in to comment.