From: Tomas Krizek Date: Thu, 21 Feb 2019 16:09:11 +0000 (+0100) Subject: lua/http: fix possible lint issue X-Git-Tag: v4.0.0~24^2~69 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59f82eaa195d64c6b49491fbe307e839ac9320be;p=thirdparty%2Fknot-resolver.git lua/http: fix possible lint issue --- diff --git a/modules/http/http.lua.in b/modules/http/http.lua.in index 88e56bab9..d36d83e75 100644 --- a/modules/http/http.lua.in +++ b/modules/http/http.lua.in @@ -30,9 +30,11 @@ local mime_types = { -- Preload static contents, nothing on runtime will touch the disk local function pgload(relpath, modname) if not modname then modname = 'http' end - local fp, err = io.open(string.format('@modules_dir@/%s/%s', modname, relpath), 'r') + local fp, err = io.open(string.format( + '@modules_dir@/%s/%s', modname, relpath), 'r') if not fp then - fp, err = io.open(string.format('@modules_dir@/%s/static/%s', modname, relpath), 'r') + fp, err = io.open(string.format( + '@modules_dir@/%s/static/%s', modname, relpath), 'r') end if not fp then error(err) end local data = fp:read('*all')