X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/00a2951166f61cbbfe1d6e042fe0e53427c001cd..b7fbde4042a9275e9454acb6e586896319cf1455:/layout/cascadetile.lua

diff --git a/layout/cascadetile.lua b/layout/cascadetile.lua
index a94bbed..98821e3 100644
--- a/layout/cascadetile.lua
+++ b/layout/cascadetile.lua
@@ -43,11 +43,7 @@ function cascadetile.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