Skip to content

Commit

Permalink
Add missing returns (#186)
Browse files Browse the repository at this point in the history
Closes #185
  • Loading branch information
mxr576 authored Mar 18, 2024
1 parent 6bd64db commit 7f25853
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Storage/FlysystemStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,12 @@ public function fetch($key)
*/
public function save($key, CacheEntry $data)
{
try {
$this->filesystem->write($key, serialize($data));
return true;
} catch (FilesystemException $e) {
return false;
}
}

/**
Expand All @@ -54,6 +59,7 @@ public function delete($key)
{
try {
$this->filesystem->delete($key);
return true;
} catch (FilesystemException $ex) {
return true;
}
Expand Down

0 comments on commit 7f25853

Please sign in to comment.