still return $self if deactivating bad dir
[p5sagit/local-lib.git] / lib / local / lib.pm
index 41a51d6..f7cb586 100644 (file)
@@ -184,7 +184,7 @@ sub deactivate {
 
   if (!grep { $_ eq $path } @active_lls) {
     warn "Tried to deactivate inactive local::lib '$path'\n";
-    return;
+    return $self;
   }
 
   my %args = (