Skip to content

Commit

Permalink
refactor(file): find_exists return value
Browse files Browse the repository at this point in the history
  • Loading branch information
mahiarirani committed Dec 28, 2024
1 parent 22f8913 commit f717844
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/Storage/BeeSwarm.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,12 +265,7 @@ public function file_exists($path): bool {
// Return true always the creation of the root folder
return true;
}
$exists = $this->fileMapper->findExists($path, $this->storageId);
if (0 == $exists) {
return false;
}

return true;
return $this->fileMapper->findExists($path, $this->storageId) > 0;
}

public function filemtime($path): int {
Expand Down

0 comments on commit f717844

Please sign in to comment.