Skip to content

Commit

Permalink
Remove unnecessary argc check
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Guyot <[email protected]>
  • Loading branch information
pguyot committed Dec 7, 2024
1 parent fc824ad commit 549063f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libAtomVM/nifs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3003,9 +3003,7 @@ static term nif_erlang_binary_to_term(Context *ctx, int argc, term argv[])

static term nif_erlang_term_to_binary(Context *ctx, int argc, term argv[])
{
if (argc != 1) {
RAISE_ERROR(BADARG_ATOM);
}
UNUSED(argc);
term t = argv[0];
term ret = externalterm_to_binary(ctx, t);
if (term_is_invalid_term(ret)) {
Expand Down

0 comments on commit 549063f

Please sign in to comment.