# HG changeset patch # User Kim Alvefur # Date 1577132160 -3600 # Node ID a469d2bcea96dc85d11de8ca4693c3f19497e5a0 # Parent 29c1a3bf1d29231ae8deafb30f3ac5c0a1db15a3 util.prosodyctl: Silence luacheck warnings diff -r 29c1a3bf1d29 -r a469d2bcea96 util/prosodyctl.lua --- 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