mirror of
https://github.com/lrsjng/h5ai
synced 2025-12-06 17:02:26 +01:00
Remove redundant variable assignment
Keep the default assignment in case there are more types.
This commit is contained in:
parent
aa94de4945
commit
e77958d0d2
1 changed files with 2 additions and 1 deletions
|
|
@ -29,7 +29,6 @@ class Thumb {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
$capture_path = $source_path;
|
|
||||||
if ($type === 'img') {
|
if ($type === 'img') {
|
||||||
$capture_path = $source_path;
|
$capture_path = $source_path;
|
||||||
} elseif ($type === 'mov') {
|
} elseif ($type === 'mov') {
|
||||||
|
|
@ -44,6 +43,8 @@ class Thumb {
|
||||||
} elseif ($this->setup->get('HAS_CMD_GM')) {
|
} elseif ($this->setup->get('HAS_CMD_GM')) {
|
||||||
$capture_path = $this->capture(Thumb::$GM_CONVERT_CMDV, $source_path);
|
$capture_path = $this->capture(Thumb::$GM_CONVERT_CMDV, $source_path);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$capture_path = $source_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->thumb_href($capture_path, $width, $height);
|
return $this->thumb_href($capture_path, $width, $height);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue