fix: remove unused local variable

This commit is contained in:
Benjamin Nussbaum 2025-04-24 21:00:01 +02:00
parent b4dea89fad
commit 302730c81e

View file

@ -75,10 +75,8 @@ Route::get('/display', function (Request $request) {
} else {
if (file_exists(storage_path('app/public/images/generated/'.$image_uuid.'.bmp'))) {
$image_path = 'images/generated/'.$image_uuid.'.bmp';
$filename = basename($image_path);
} elseif (file_exists(storage_path('app/public/images/generated/'.$image_uuid.'.png'))) {
$image_path = 'images/generated/'.$image_uuid.'.png';
$filename = basename($image_path);
} else {
$image_path = 'images/generated/'.$image_uuid.'.bmp';
}