1
0
Fork 0
mirror of https://github.com/lrsjng/h5ai synced 2025-12-06 08:52:45 +01:00

Remove redundant variable assignment

Keep the default assignment in case there are more types.
This commit is contained in:
glubsy 2020-11-10 04:14:25 +01:00
parent aa94de4945
commit e77958d0d2

View file

@ -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);