beautiful: remove useless var and close file

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Damien Leone 2008-08-06 15:37:36 +02:00 committed by Julien Danjou
parent 1755dd51fe
commit be9e53f4be
1 changed files with 1 additions and 1 deletions

View File

@ -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