agendafs

A filesystem for your calendar.

git clone git://mccd.space/agendafs
commit 17d8e83e7621a4613859ade5b7cd93bed7cdeb06
parent 567b9e6d454a3afb2175974ba3d59c8ef020fc4a
Author: Marc Coquand <marc@coquand.email>
Date:   Tue, 29 Jul 2025 00:13:35 +0200

Cleanup

Diffstat:
Mmain.c | 8+++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/main.c b/main.c
@@ -321,11 +321,9 @@ fuse_rename(const char *old, const char *new, unsigned int flags)
 		goto cleanup_return;
 	}
 
-	if (existing_node) {
-		if (delete_vdir_entry(mreg, existing_node) != 0) {
-			res = -EIO;
-			goto cleanup_return;
-		}
+	if (existing_node && delete_vdir_entry(mreg, existing_node) != 0) {
+		res = -EIO;
+		goto cleanup_return;
 	}
 
 	res = do_agenda_rename(mreg, old, new);