beautiful: simplify data retrieval
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
06cbcbc9bb
commit
4ac4cc3ab2
|
@ -30,10 +30,8 @@ local theme = {}
|
||||||
-- @param key The key.
|
-- @param key The key.
|
||||||
-- @return The value.
|
-- @return The value.
|
||||||
function __index(self, key)
|
function __index(self, key)
|
||||||
if theme[key] then
|
|
||||||
return theme[key]
|
return theme[key]
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
--- Init function, should be runned at the beginning of configuration file.
|
--- Init function, should be runned at the beginning of configuration file.
|
||||||
-- @param path The theme file path.
|
-- @param path The theme file path.
|
||||||
|
|
Loading…
Reference in New Issue