Skip to content

Commit

Permalink
Remove deadcode as s is not possible to be NATS_OK here
Browse files Browse the repository at this point in the history
Signed-off-by: yuchenlin <yuchenlin@synology.com>
  • Loading branch information
yuchenlin committed Jan 22, 2022
1 parent 31bd47a commit 363a5c1
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1944,11 +1944,7 @@ _connect(natsConnection *nc)
else
{
if (natsConn_isClosed(nc))
{
if (s == NATS_OK)
s = NATS_CONNECTION_CLOSED;
break;
}

if (s == NATS_IO_ERROR)
retSts = NATS_OK;
Expand Down

0 comments on commit 363a5c1

Please sign in to comment.