Skip to content

Commit

Permalink
save setting variable by doing this
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvarga committed Apr 16, 2024
1 parent 909be72 commit 375696b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Imaging/GlideUrlBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ public function build($item, $params)
{
$this->item = $item;

$filename = null;

switch ($this->itemType()) {
case 'url':
$path = 'http/'.base64_encode($item);
Expand All @@ -57,7 +55,7 @@ public function build($item, $params)

$builder = UrlBuilderFactory::create($this->options['route'], $this->options['key']);

if ($filename) {
if (isset($filename)) {
$path .= Str::ensureLeft(URL::encode($filename), '/');
}

Expand Down

0 comments on commit 375696b

Please sign in to comment.