commit 058bc3ccca0e1d6482ff018285b8d2bb9e163e21 from: Sergey Bronnikov via: Vladimir Davydov date: Fri Sep 13 07:54:48 2024 UTC test: fix luacheck warnings The patch fixes a warning produced by luacheck: NO_WRAP test/app-luatest/http_client_test.lua:27:8: Error prone negation: negation is executed before relational operator. test/app-luatest/http_client_test.lua:28:8: Error prone negation: negation is executed before relational operator. NO_WRAP Found by Luacheck 1.2.0. Closes #10037 NO_CHANGELOG=codehealth NO_DOC=codehealth NO_TEST=codehealth (cherry picked from commit 8fd37731b68e1e1d8e258ab919d65907d52ec764) commit - ca94a31aec8bcc653fe43adfec02ec6852a25994 commit + 058bc3ccca0e1d6482ff018285b8d2bb9e163e21 blob - eb7fd452267fa6a033b4e08065d235f6b9adc954 blob + 646d80ba1d9a7ae1529ade58710e940cced9016d --- test/app-luatest/http_client_test.lua +++ test/app-luatest/http_client_test.lua @@ -24,8 +24,8 @@ local function merge(...) end local function start_server(sock_family) - if not sock_family == 'AF_INET' and - not sock_family == 'AF_UNIX' then + if sock_family ~= 'AF_INET' and + sock_family ~= 'AF_UNIX' then error(string.format('invalid socket family: %s', sock_family)) end local url