Skip to content

Commit

Permalink
erlang: fix unreachable code
Browse files Browse the repository at this point in the history
(cherry picked from commit c061d66)
  • Loading branch information
seudin committed Jan 4, 2018
1 parent 6ae5f70 commit db00ca1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/modules/erlang/handle_rpc.c
Expand Up @@ -1418,15 +1418,13 @@ static int find_member(erl_rpc_ctx_t *ctx, int arity, const char* member_name)
erl_rpc_fault(ctx,400,"Unexpected end of struct tuple");
goto error;
}
continue;
i++;
}
else
{
/* return at current position */
return 0;
}

i++;
}

erl_rpc_fault(ctx,400, "Member %s not found",member_name);
Expand Down

0 comments on commit db00ca1

Please sign in to comment.