Changeset

10536:a469d2bcea96

util.prosodyctl: Silence luacheck warnings
author Kim Alvefur <zash@zash.se>
date Mon, 23 Dec 2019 21:16:00 +0100
parents 10535:29c1a3bf1d29
children 10537:c5558138ce33
files util/prosodyctl.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
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