Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 28, 2020
1 parent 4deaad3 commit b8790e5
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/Illuminate/Filesystem/FilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,9 @@ protected function getFtpUrl($path)
{
$config = $this->driver->getConfig();

if ($config->has('url')) {
return $this->concatPathToUrl($config->get('url'), $path);
}

return $path;
return $config->has('url')
? $this->concatPathToUrl($config->get('url'), $path)
: $path;
}

/**
Expand Down

0 comments on commit b8790e5

Please sign in to comment.