From: Orestis Floros Date: Sat, 24 Mar 2018 13:14:20 +0000 (+0200) Subject: workspace_show: remove redundant if X-Git-Tag: 4.16~118^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f46bb0396e68ddaa0b491b973f8dfedd98eee3e7;p=i3%2Fi3 workspace_show: remove redundant if --- 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);