Skip to content

Commit

Permalink
Fix my last commit, use $this->fileSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
williamdes committed Dec 3, 2023
1 parent a01c6e6 commit bc3f283
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Resumable.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@ private function createFileAndDeleteTmp(string $identifier, ?string $filename):
$this->log('Removing chunk dir: ' . $chunkDir);

// See: https://github.com/KnpLabs/Gaufrette/issues/524
if (method_exists($filesystem, 'getAdapter')) {
$filesystem->getAdapter()->delete($chunkDir);
if (method_exists($this->fileSystem, 'getAdapter')) {
$this->fileSystem->getAdapter()->delete($chunkDir);
return;
}

$filesystem->delete($chunkDir);
$this->fileSystem->delete($chunkDir);
}

/**
Expand Down

0 comments on commit bc3f283

Please sign in to comment.