MINOR: proto: fix coding style

Remove redundant brackets for 'if' statements that contain only one
instruction.
This commit is contained in:
Valentine Krasnobaeva 2024-05-22 11:19:53 +02:00 committed by Willy Tarreau
parent 83ab1479d0
commit 0e93549d2a
3 changed files with 3 additions and 6 deletions

View File

@ -303,9 +303,8 @@ int quic_connect_server(struct connection *conn, int flags)
/* perform common checks on obtained socket FD, return appropriate Stream Error Flag in case of failure */
fd = conn->handle.fd = sock_create_server_socket(conn, be, &stream_err);
if (fd == -1) {
if (fd == -1)
return stream_err;
}
/* FD is ok, perform protocol specific settings */
/* allow specific binding :

View File

@ -302,9 +302,8 @@ int tcp_connect_server(struct connection *conn, int flags)
/* perform common checks on obtained socket FD, return appropriate Stream Error Flag in case of failure */
fd = conn->handle.fd = sock_create_server_socket(conn, be, &stream_err);
if (fd == -1) {
if (fd == -1)
return stream_err;
}
/* FD is OK, continue with protocol specific settings */
if (be->options & PR_O_TCP_SRV_KA) {

View File

@ -241,9 +241,8 @@ static int uxst_connect_server(struct connection *conn, int flags)
/* perform common checks on obtained socket FD, return appropriate Stream Error Flag in case of failure */
fd = conn->handle.fd = sock_create_server_socket(conn, be, &stream_err);
if (fd == -1) {
if (fd == -1)
return stream_err;
}
/* FD is ok, continue with protocol specific settings */
if (global.tune.server_sndbuf)