about summary refs log tree commit diff
path: root/src/libstore/gc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/gc.cc')
-rw-r--r--src/libstore/gc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.cc b/src/libstore/gc.cc
index 1bc8d162f8..e082f67143 100644
--- a/src/libstore/gc.cc
+++ b/src/libstore/gc.cc
@@ -608,7 +608,7 @@ void LocalStore::collectGarbage(const GCOptions & options, GCResults & results)
 
     state.shouldDelete = options.action == GCOptions::gcDeleteDead || options.action == GCOptions::gcDeleteSpecific;
 
-    if (state.shouldDelete && pathExists(reservedPath))
+    if (state.shouldDelete)
         deletePath(reservedPath);
 
     /* Acquire the global GC root.  This prevents