From e77958d0d2034ffd7acccd42b750ab6ebaeaa423 Mon Sep 17 00:00:00 2001 From: glubsy Date: Tue, 10 Nov 2020 04:14:25 +0100 Subject: [PATCH] Remove redundant variable assignment Keep the default assignment in case there are more types. --- src/_h5ai/private/php/ext/class-thumb.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/_h5ai/private/php/ext/class-thumb.php b/src/_h5ai/private/php/ext/class-thumb.php index d52d3e85..e1e68eb4 100644 --- a/src/_h5ai/private/php/ext/class-thumb.php +++ b/src/_h5ai/private/php/ext/class-thumb.php @@ -29,7 +29,6 @@ class Thumb { return null; } - $capture_path = $source_path; if ($type === 'img') { $capture_path = $source_path; } elseif ($type === 'mov') { @@ -44,6 +43,8 @@ class Thumb { } elseif ($this->setup->get('HAS_CMD_GM')) { $capture_path = $this->capture(Thumb::$GM_CONVERT_CMDV, $source_path); } + } else { + $capture_path = $source_path; } return $this->thumb_href($capture_path, $width, $height);