Skip to content

Commit 1a7288d

Browse files
committed
fix astyle convention
1 parent d92a946 commit 1a7288d

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

features/lwipstack/LWIPStack.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,9 @@ nsapi_error_t LWIP::socket_open(nsapi_socket_t *handle, nsapi_protocol_t proto)
233233
enum netconn_type netconntype;
234234
if ( proto == NSAPI_TCP) {
235235
netconntype = NETCONN_TCP;
236-
}
237-
else if ( proto == NSAPI_UDP ) {
236+
} else if ( proto == NSAPI_UDP ) {
238237
netconntype = NETCONN_UDP;
239-
}
240-
else {
238+
} else {
241239
netconntype = NETCONN_RAW;
242240
}
243241

@@ -249,8 +247,7 @@ nsapi_error_t LWIP::socket_open(nsapi_socket_t *handle, nsapi_protocol_t proto)
249247
if (proto == NSAPI_ICMP ) {
250248
s->conn = netconn_new_with_proto_and_callback(NETCONN_RAW,
251249
(u8_t)IP_PROTO_ICMP, &LWIP::socket_callback);
252-
}
253-
else {
250+
} else {
254251
s->conn = netconn_new_with_callback(netconntype, &LWIP::socket_callback);
255252
}
256253

0 commit comments

Comments
 (0)