X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/046b0279b0f3eb827bcc2b2e395e6ea69c019733..f89991fe26dd904b05f4bac25f71e7d7d45c2206:/layout/centerwork.lua

diff --git a/layout/centerwork.lua b/layout/centerwork.lua
index 2035c65..b8175ea 100644
--- a/layout/centerwork.lua
+++ b/layout/centerwork.lua
@@ -24,11 +24,7 @@ local centerwork =
 function centerwork.arrange(p)
     -- A useless gap (like the dwm patch) can be defined with
     -- beautiful.useless_gap_width .
-    local useless_gap = tonumber(beautiful.useless_gap_width)
-    if useless_gap == nil
-    then
-        useless_gap = 0
-    end
+    local useless_gap = tonumber(beautiful.useless_gap_width) or 0
 
     -- Screen.
     local wa = p.workarea