aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-10-23 13:32:01 +0200
committerKim Alvefur <zash@zash.se>2021-10-23 13:32:01 +0200
commit092875aaecc5722274755bbcf4a35a77a86a538f (patch)
tree7b4487d12fcd576499eb1217e7e30facc1b94c95
parent93358778981d4a5d609205f937277787210e18be (diff)
downloadprosody-092875aaecc5722274755bbcf4a35a77a86a538f.tar.gz
prosody-092875aaecc5722274755bbcf4a35a77a86a538f.zip
mod_http_file_share: Silence luacheck warning
-rw-r--r--plugins/mod_http_file_share.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_http_file_share.lua b/plugins/mod_http_file_share.lua
index f57257bb..7b05c85a 100644
--- a/plugins/mod_http_file_share.lua
+++ b/plugins/mod_http_file_share.lua
@@ -289,7 +289,7 @@ function handle_upload(event, path) -- PUT /upload/:slot
module:log("error", "Could not open file for writing: %s", err);
return 500;
end
- function event.response:on_destroy()
+ function event.response:on_destroy() -- luacheck: ignore 212/self
-- Clean up incomplete upload
if io.type(fh) == "file" then -- still open
fh:close();