Skip to content

Commit

Permalink
Fix function name.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwsteele committed Jun 30, 2022
1 parent bd4a9b5 commit 5c5f599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/storage/posix/storage.c
Expand Up @@ -435,7 +435,7 @@ storagePosixPathRemoveCallback(void *const callbackData, const StorageInfo *cons

// Helper to determine if an error code indicates that a path is not empty. This can vary by implementation.
static bool
storagePosixErrorIsEmpty(const int error)
storagePosixErrorIsNotEmpty(const int error)
{
FUNCTION_TEST_BEGIN();
FUNCTION_TEST_PARAM(INT, error);
Expand Down Expand Up @@ -477,7 +477,7 @@ storagePosixPathRemove(THIS_VOID, const String *path, bool recurse, StorageInter
removed = true;
}
// Else if not empty but recursion requested then remove all sub paths/files
else if (storagePosixErrorIsEmpty(errno) && recurse) // {vm_covered}
else if (storagePosixErrorIsNotEmpty(errno) && recurse) // {vm_covered}
{
StoragePosixPathRemoveData data =
{
Expand Down

0 comments on commit 5c5f599

Please sign in to comment.