build: enforce luacheck in travis build

This commit is contained in:
Qingping Hou
2016-02-09 23:01:52 -08:00
parent b8ee33871f
commit 9bd2d42834
8 changed files with 21 additions and 19 deletions

View File

@@ -30,8 +30,8 @@ function DocSettings:getNameFromHistory(hist_name)
end
function DocSettings:open(docfile)
local history_path = nil
local sidecar_path = nil
local history_path
local sidecar_path
if docfile == ".reader" then
-- we handle reader setting as special case
history_path = DataStorage:getDataDir() .. "/settings.reader.lua"