Delete temp when updating
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
24c53106bd
commit
eee6b86e15
|
@ -54,6 +54,8 @@ class JpgCompressor extends Compressor
|
||||||
$versionFilename = $this->media->versionsDirPath().'/'.$this->versionFilename($destWidth, $destHeight);
|
$versionFilename = $this->media->versionsDirPath().'/'.$this->versionFilename($destWidth, $destHeight);
|
||||||
|
|
||||||
if ($update && Storage::exists($versionFilename)) {
|
if ($update && Storage::exists($versionFilename)) {
|
||||||
|
Storage::delete($temp);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,8 @@ class PngCompressor extends Compressor
|
||||||
$versionFilename = $this->media->versionsDirPath().'/'.$this->versionFilename($destWidth, $destHeight);
|
$versionFilename = $this->media->versionsDirPath().'/'.$this->versionFilename($destWidth, $destHeight);
|
||||||
|
|
||||||
if ($update && Storage::exists($versionFilename)) {
|
if ($update && Storage::exists($versionFilename)) {
|
||||||
|
Storage::delete($temp);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue