Remove unnecessary empty if block in pre_process_func

Co-authored-by: hsliuustc0106 <222337142+hsliuustc0106@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]andhsliuustc0106 committed 2026-01-19 04:39:57 +00:00
1 parent 04900ebf04
commit 38cb8af97e
1 file changed
-5
@@ -44,11 +44,6 @@ def get_ltx2_pre_process_func(
if req.image_path is not None and req.pil_image is None:
req.pil_image = PIL.Image.open(req.image_path).convert("RGB")
# For image-to-video, store the image for later use
if req.pil_image is not None:
# LTX-2 will handle image resizing internally
pass
return requests
return pre_process_func