Simplify comparisons

This commit is contained in:
AliasAlreadyTaken 2023-05-08 09:48:27 +02:00
parent 095614a6b6
commit 8b5bc33b59
1 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@ local function send(user_name, message_text)
post_data = core.write_json(data_in)
},
function(result)
if (not result.completed) or (not result.succeeded) or (not (result.code == 200)) then
if (not result.completed) or (not result.succeeded) or (result.code ~= 200) then
core.log("error", "[MOD] yl_matterbridge: send/http.fetch failed. Result = " .. dump(result))
return false
else
@ -107,7 +107,7 @@ local function receive()
timeout = timeout
},
function(result)
if (not result.completed) or (not result.succeeded) or (not (result.code == 200)) then
if (not result.completed) or (not result.succeeded) or (result.code ~= 200) then
core.log("error", "[MOD] yl_matterbridge: receive/http.fetch failed. Result (req) = " .. dump(result))
return false
else