diff options
author | Kim Alvefur <zash@zash.se> | 2019-12-23 21:16:00 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-12-23 21:16:00 +0100 |
commit | 14d66d84121f2ff5a90da95d6b713d91910a9aa7 (patch) | |
tree | 223d2e69e41d0c2620f8a77da7c75a1d8fcf21f7 | |
parent | f8e36355eef43f02211b3e7cdb501c3ed3d36b8d (diff) | |
download | prosody-14d66d84121f2ff5a90da95d6b713d91910a9aa7.tar.gz prosody-14d66d84121f2ff5a90da95d6b713d91910a9aa7.zip |
util.prosodyctl: Silence luacheck warnings
-rw-r--r-- | util/prosodyctl.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/prosodyctl.lua b/util/prosodyctl.lua index 586802d3..0787b8c3 100644 --- a/util/prosodyctl.lua +++ b/util/prosodyctl.lua @@ -210,7 +210,7 @@ local function getpid() return false, "pidfile-read-failed", err; end - local locked, err = lfs.lock(file, "w"); + local locked, err = lfs.lock(file, "w"); -- luacheck: ignore 211/err if locked then file:close(); return false, "pidfile-not-locked"; @@ -227,7 +227,7 @@ local function getpid() end local function isrunning() - local ok, pid, err = getpid(); + local ok, pid, err = getpid(); -- luacheck: ignore 211/err if not ok then if pid == "pidfile-read-failed" or pid == "pidfile-not-locked" then -- Report as not running, since we can't open the pidfile |