Mercurial > prosody-hg
diff util/prosodyctl.lua @ 10536:a469d2bcea96
util.prosodyctl: Silence luacheck warnings
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Mon, 23 Dec 2019 21:16:00 +0100 |
| parents | 649acbfbf7fe |
| children | 88be11e9f9b9 |
line wrap: on
line diff
--- a/util/prosodyctl.lua Mon Dec 23 21:15:01 2019 +0100 +++ b/util/prosodyctl.lua Mon Dec 23 21:16:00 2019 +0100 @@ -210,7 +210,7 @@ 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 @@ 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
