]> Sergey Matveev's repositories - nnn.git/commitdiff
Save one level of indentation
authorsin <sin@2f30.org>
Wed, 22 Oct 2014 15:56:31 +0000 (16:56 +0100)
committersin <sin@2f30.org>
Wed, 22 Oct 2014 15:56:31 +0000 (16:56 +0100)
noice.c

diff --git a/noice.c b/noice.c
index 897bcb97b6c73a7ddfa593aa32e4b3db090b0c50..73ecc0f299db94a6bf05d91f7e8e062d1c4ac390 100644 (file)
--- a/noice.c
+++ b/noice.c
@@ -672,22 +672,21 @@ nochange:
                        if (testopendir(tmp) == 0) {
                                printwarn();
                                goto nochange;
-                       } else {
-                               free(path);
-                               path = xrealpath(tmp);
-                               free(tmp);
-                               free(filter);
-                               filter = xstrdup(ifilter); /* Reset filter */
-                               /* Forget history */
-                               while (!SLIST_EMPTY(&histhead)) {
-                                       hist = SLIST_FIRST(&histhead);
-                                       SLIST_REMOVE_HEAD(&histhead, entry);
-                                       free(hist);
-                               }
-                               DPRINTF_S(path);
-                               cur = 0;
-                               goto out;
                        }
+                       free(path);
+                       path = xrealpath(tmp);
+                       free(tmp);
+                       free(filter);
+                       filter = xstrdup(ifilter); /* Reset filter */
+                       /* Forget history */
+                       while (!SLIST_EMPTY(&histhead)) {
+                               hist = SLIST_FIRST(&histhead);
+                               SLIST_REMOVE_HEAD(&histhead, entry);
+                               free(hist);
+                       }
+                       DPRINTF_S(path);
+                       cur = 0;
+                       goto out;
                }
        }