Mercurial > prosody-hg
comparison plugins/mod_posix.lua @ 9928:d92ab8c8006a
mod_posix: Remove unnecessary import of util.format (thanks luacheck and buildbot)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 26 Mar 2019 14:59:42 +0000 |
| parents | 1460c4966262 |
| children | 4f655918fef1 |
comparison
equal
deleted
inserted
replaced
| 9927:1460c4966262 | 9928:d92ab8c8006a |
|---|---|
| 18 local have_signal, signal = pcall(require, "util.signal"); | 18 local have_signal, signal = pcall(require, "util.signal"); |
| 19 if not have_signal then | 19 if not have_signal then |
| 20 module:log("warn", "Couldn't load signal library, won't respond to SIGTERM"); | 20 module:log("warn", "Couldn't load signal library, won't respond to SIGTERM"); |
| 21 end | 21 end |
| 22 | 22 |
| 23 local format = require "util.format".format; | |
| 24 local lfs = require "lfs"; | 23 local lfs = require "lfs"; |
| 25 local stat = lfs.attributes; | 24 local stat = lfs.attributes; |
| 26 | 25 |
| 27 local prosody = _G.prosody; | 26 local prosody = _G.prosody; |
| 28 | 27 |
