vfs: Document ignored return value.
authorChristian Kamm <mail@ckamm.de>
Thu, 15 Nov 2018 08:27:35 +0000 (09:27 +0100)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:58:25 +0000 (10:58 +0100)
src/csync/vio/csync_vio_local_unix.cpp

index 705d04252891793fdc310b27c1449f16415f298f..56de3250cea4f2c6d4573e675eb85b2a0274b154 100644 (file)
@@ -123,8 +123,11 @@ std::unique_ptr<csync_file_stat_t> csync_vio_local_readdir(csync_vio_handle_t *h
   }
 
   // Override type for virtual files if desired
-  if (vfs)
+  if (vfs) {
+      // Directly modifiest file_stat->type.
+      // We can ignore the return value since we're done here anyway.
       vfs->statTypeVirtualFile(file_stat.get(), nullptr);
+  }
 
   return file_stat;
 }