]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Remove redundant logging of error
authorJoel Rosdahl <joel@rosdahl.net>
Sat, 2 Aug 2025 16:40:10 +0000 (18:40 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 3 Aug 2025 11:45:19 +0000 (13:45 +0200)
src/ccache/storage/remote/filestorage.cpp

index 580871cd506a1f1a346124c8f2837ef820dc86df..26f6af4aadc36ce8f7b254bba25ef0a65abd6fdc 100644 (file)
@@ -176,13 +176,12 @@ FileStorageBackend::put(const Hash::Digest& key,
 tl::expected<bool, RemoteStorage::Backend::Failure>
 FileStorageBackend::remove(const Hash::Digest& key)
 {
-  auto entry_path = get_entry_path(key);
-  auto result = util::remove_nfs_safe(entry_path);
-  if (!result) {
-    LOG("Failed to remove {}: {}", entry_path, result.error().message());
+  auto result = util::remove_nfs_safe(get_entry_path(key));
+  if (result) {
+    return *result;
+  } else {
     return tl::unexpected(RemoteStorage::Backend::Failure::error);
   }
-  return *result;
 }
 
 std::string