From 59f82eaa195d64c6b49491fbe307e839ac9320be Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Thu, 21 Feb 2019 17:09:11 +0100 Subject: [PATCH] lua/http: fix possible lint issue --- modules/http/http.lua.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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') -- 2.47.2