From 1183a9428fa3d9462fd2272c8963f43b073d3d87 Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 22 Oct 2014 16:56:31 +0100 Subject: [PATCH] Save one level of indentation --- noice.c | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/noice.c b/noice.c index 897bcb97..73ecc0f2 100644 --- 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; } }