From 4ac4cc3ab204f0694624da95a3a44b748996dcb0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 25 Nov 2008 17:47:06 +0100 Subject: [PATCH] beautiful: simplify data retrieval Signed-off-by: Julien Danjou --- lib/beautiful.lua.in | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/beautiful.lua.in b/lib/beautiful.lua.in index 6eacbc96..d1c25cc8 100644 --- a/lib/beautiful.lua.in +++ b/lib/beautiful.lua.in @@ -30,9 +30,7 @@ local theme = {} -- @param key The key. -- @return The value. function __index(self, key) - if theme[key] then - return theme[key] - end + return theme[key] end --- Init function, should be runned at the beginning of configuration file.