From cd10f83b24d972047a86e9aff9f4fe72be66cd92 Mon Sep 17 00:00:00 2001 From: Jonny Barnes Date: Sat, 16 Sep 2017 12:11:21 +0100 Subject: [PATCH] Style fix --- app/Jobs/ProcessImage.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Jobs/ProcessImage.php b/app/Jobs/ProcessImage.php index d977bc3a..f0fdb263 100644 --- a/app/Jobs/ProcessImage.php +++ b/app/Jobs/ProcessImage.php @@ -40,6 +40,7 @@ class ProcessImage implements ShouldQueue } catch (NotReadableException $exception) { // not an image; delete file and end job unlink(storage_path('app') . '/' . $this->filename); + return; } //create smaller versions if necessary