]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lua/http: fix possible lint issue
authorTomas Krizek <tomas.krizek@nic.cz>
Thu, 21 Feb 2019 16:09:11 +0000 (17:09 +0100)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 12 Mar 2019 09:43:36 +0000 (10:43 +0100)
modules/http/http.lua.in

index 88e56bab93b2027d1a82a840a0337957a7939d90..d36d83e75ace4f8096850061859b095b7d61b2ad 100644 (file)
@@ -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')