Fixes: 4249d65a ("treewide: fix luacheck warnings") Closes: #1851 (cherry picked from commit a3a8d962)