close input with f:close instead of f.close (bat_freebsd)

This commit is contained in:
mutlusun 2017-01-25 16:58:56 +01:00
parent 9b5f524176
commit a00f8e3e0c
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ local function worker(format, warg)
bat_info[key] = value
end
end
f.close()
f:close()
-- current state
local state

View File

@ -21,7 +21,7 @@ local function worker(format, warg)
-- use negative fanspeed to indicate error
return {-1}
else
return {tonumber(fanspeed, 10)}
return {tonumber(fanspeed)}
end
end