Skip to content

Commit

Permalink
Merge pull request #238 from barryvdh/patch-3
Browse files Browse the repository at this point in the history
Always delete tmp file
  • Loading branch information
reinink authored Apr 3, 2019
2 parents 37fe775 + 5385fdc commit 5f884d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ env:
- COMPOSER_OPTS="--prefer-lowest"

php:
- 5.4
- 5.5
- 5.6
- 7.0
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"require": {
"intervention/image": "^2.4",
"league/flysystem": "^1.0",
"php": "^5.4 | ^7.0",
"php": "^5.5 | ^7.0",
"psr/http-message": "^1.0"
},
"require-dev": {
Expand Down
4 changes: 2 additions & 2 deletions src/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -537,10 +537,10 @@ public function makeImage($path, array $params)
// This edge case occurs when the target already exists
// because it's currently be written to disk in another
// request. It's best to just fail silently.
} finally {
unlink($tmp);
}

unlink($tmp);

return $cachedPath;
}
}

0 comments on commit 5f884d7

Please sign in to comment.