From 6c6b09f762eed19f3c7c036cdb6735b1d10f8276 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 15 Jan 2024 12:18:28 +0000 Subject: [PATCH] [core] image->mime is not-nullable --- core/imageboard/image.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/core/imageboard/image.php b/core/imageboard/image.php index 2e9864fd..706e0e3a 100644 --- a/core/imageboard/image.php +++ b/core/imageboard/image.php @@ -433,11 +433,7 @@ class Image if ($this->mime === MimeType::WEBP && $this->lossless) { return MimeType::WEBP_LOSSLESS; } - $m = $this->mime; - if (is_null($m)) { - $m = MimeMap::get_for_extension($this->ext)[0]; - } - return strtolower($m); + return strtolower($this->mime); } /**