Skip to content

Commit

Permalink
Update style in sio_socket.cpp
Browse files Browse the repository at this point in the history
To keep the style. "ifs" with element can be put in one line if they fit. Otherwise they should use the bracket style.
  • Loading branch information
jmigual authored Nov 8, 2023
1 parent f4c38af commit c9a7e17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sio_socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,8 +459,7 @@ namespace sio
event ev = event_adapter::create_event(nsp,name, std::move(message),needAck);
event_listener func = this->get_bind_listener_locked(name);
if(func)func(ev);
if (m_event_listener)
m_event_listener(ev);
if (m_event_listener) m_event_listener(ev);
if(needAck)
{
this->ack(msgId, name, ev.get_ack_message());
Expand Down

0 comments on commit c9a7e17

Please sign in to comment.