login

<     >

2023-08-26 08:13:25 (UTC-03:00)

Marcel Rodrigues <marcelgmr@gmail.com>

minor style change

diff --git a/lib/ludweb/tcp.lua b/lib/ludweb/tcp.lua
index f689173..771f990 100644
--- a/lib/ludweb/tcp.lua
+++ b/lib/ludweb/tcp.lua
@@ -123,9 +123,7 @@ function TCP:run()
         for n = 0, nfds-1 do
             if evs[n].data.fd == self.sockfd then
                 local newfd = C.accept(self.sockfd, nil, nil)
-                if newfd < 0 then
-                    break
-                end
+                if newfd < 0 then break end
                 set_non_blocking(newfd)
                 ev[0].events = bit.bor(C.EPOLLIN, C.EPOLLET)
                 ev[0].data.fd = newfd