Skip to content

Commit 06efd05

Browse files
committed
fix style
1 parent 488c599 commit 06efd05

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Controllers/DownloadController.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,9 @@ public function getDownload()
2020

2121
if (key_exists('driver', $config) && $config['driver'] == 's3') {
2222
$duration = $this->helper->config('temporary_url_duration');
23-
return response()->streamDownload(
24-
function () {
23+
return response()->streamDownload(function () {
2524
echo file_get_contents($disk->temporaryUrl($file->path('storage'), now()->addMinutes($duration)));
26-
}, $file_name
27-
);
25+
}, $file_name);
2826
} else {
2927
return response()->download($file->path('absolute'));
3028
}

0 commit comments

Comments
 (0)