comparison mod_pastebin/mod_pastebin.lua @ 3033:b2b129f699ed

mod_pastebin: Silence some warnings [luacheck]
author Kim Alvefur <zash@zash.se>
date Sun, 20 May 2018 18:11:15 +0200
parents 0f2dd6397569
children 6e9096b66704
comparison
equal deleted inserted replaced
3032:0f2dd6397569 3033:b2b129f699ed
156 ["GET /*"] = handle_request; 156 ["GET /*"] = handle_request;
157 }; 157 };
158 }); 158 });
159 159
160 local function set_pastes_metatable() 160 local function set_pastes_metatable()
161 -- luacheck: ignore 212/pastes 431/pastes
161 if expire_after == 0 then 162 if expire_after == 0 then
162 local dm = require "util.datamanager"; 163 local dm = require "util.datamanager";
163 setmetatable(pastes, { 164 setmetatable(pastes, {
164 __index = function (pastes, id) 165 __index = function (pastes, id)
165 if type(id) == "string" then 166 if type(id) == "string" then