beautiful: remove useless var and close file
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
1755dd51fe
commit
be9e53f4be
|
@ -25,7 +25,6 @@ local theme = {}
|
||||||
-- @return nil if the '=' character is not in the string
|
-- @return nil if the '=' character is not in the string
|
||||||
-- if the string begins with '#' which is a comment
|
-- if the string begins with '#' which is a comment
|
||||||
local function split_line(line)
|
local function split_line(line)
|
||||||
local values = {}
|
|
||||||
local split_val = line:find('=')
|
local split_val = line:find('=')
|
||||||
|
|
||||||
if split_val and line:sub(1, 1) ~= '#' and line:sub(1, 2) ~= '--' then
|
if split_val and line:sub(1, 1) ~= '#' and line:sub(1, 2) ~= '--' then
|
||||||
|
@ -69,6 +68,7 @@ function init(path)
|
||||||
theme[key] = value
|
theme[key] = value
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
f:close()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue