From f46bb0396e68ddaa0b491b973f8dfedd98eee3e7 Mon Sep 17 00:00:00 2001
From: Orestis Floros <orestisf1993@gmail.com>
Date: Sat, 24 Mar 2018 15:14:20 +0200
Subject: [PATCH] workspace_show: remove redundant if

---
 src/workspace.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/src/workspace.c b/src/workspace.c
index 2d574e2a..edd3ee6f 100644
--- a/src/workspace.c
+++ b/src/workspace.c
@@ -397,10 +397,8 @@ void workspace_show(Con *workspace) {
      * focused) are skipped, see bug #868. */
     if (current && !con_is_internal(current)) {
         FREE(previous_workspace_name);
-        if (current) {
-            previous_workspace_name = sstrdup(current->name);
-            DLOG("Setting previous_workspace_name = %s\n", previous_workspace_name);
-        }
+        previous_workspace_name = sstrdup(current->name);
+        DLOG("Setting previous_workspace_name = %s\n", previous_workspace_name);
     }
 
     workspace_reassign_sticky(workspace);