mirror of
https://github.com/koel/koel
synced 2024-11-24 05:03:05 +00:00
Refactor
This commit is contained in:
parent
921df9d5a3
commit
efcdac82e3
1 changed files with 1 additions and 3 deletions
|
@ -39,9 +39,7 @@ class Download
|
|||
|
||||
protected function fromSong(Song $song)
|
||||
{
|
||||
if (!file_exists($song->path)) {
|
||||
abort(404);
|
||||
}
|
||||
abort_unless(file_exists($song->path), 404);
|
||||
|
||||
if (ctype_print($song->path)) {
|
||||
return $song->path;
|
||||
|
|
Loading…
Reference in a new issue