Fix Luacheck warnings
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
83ffc2b0ce
commit
75e67e1d33
|
@ -28,6 +28,7 @@ read_globals = {
|
||||||
"mousegrabber",
|
"mousegrabber",
|
||||||
"root",
|
"root",
|
||||||
"selection",
|
"selection",
|
||||||
|
"selection_watcher",
|
||||||
"tag",
|
"tag",
|
||||||
"window",
|
"window",
|
||||||
"table.unpack",
|
"table.unpack",
|
||||||
|
|
|
@ -51,8 +51,10 @@ end)
|
||||||
|
|
||||||
local function check_state(owned, unowned)
|
local function check_state(owned, unowned)
|
||||||
assert(not had_error, "there was an error")
|
assert(not had_error, "there was an error")
|
||||||
assert(owned_clipboard_changes == owned, string.format("expected %d owned changes, but got %d", owned, owned_clipboard_changes))
|
assert(owned_clipboard_changes == owned,
|
||||||
assert(unowned_clipboard_changes == unowned, string.format("expected %d unowned changes, but got %d", unowned, unowned_clipboard_changes))
|
string.format("expected %d owned changes, but got %d", owned, owned_clipboard_changes))
|
||||||
|
assert(unowned_clipboard_changes == unowned,
|
||||||
|
string.format("expected %d unowned changes, but got %d", unowned, unowned_clipboard_changes))
|
||||||
end
|
end
|
||||||
|
|
||||||
local continue = false
|
local continue = false
|
||||||
|
|
Loading…
Reference in New Issue