General polish #28

Merged
dimitar.p.ivanov merged 4 commits from improve_specs into master 2026-05-22 16:54:18 +09:00
Owner
No description provided.
dimitar.p.ivanov added 2 commits 2026-05-20 23:03:16 +09:00
dimitar.p.ivanov requested review from zxq9 2026-05-20 23:03:16 +09:00
zxq9 reviewed 2026-05-21 16:17:14 +09:00
src/hz.erl Outdated
@@ -814,3 +818,3 @@
Error ->
io:format("Dis chit happen: ~tp~n", [Error]),
{ok, TarBaby}
{ok, unicode:characters_to_list(TarBaby)}
Owner

There is no guarantee that anything committed in the source element is valid unicode, so we have to leave the casting from binary to list up to the caller. That's why the original didn't even care to match on "ba_" as a prefix -- if we can't decode then we're talking to an alien node interface to begin with, and just return the return.

There is no guarantee that anything committed in the source element is valid unicode, so we have to leave the casting from binary to list up to the caller. That's why the original didn't even care to match on "ba_" as a prefix -- if we can't decode then we're talking to an alien node interface to begin with, and just return the return.
Owner

@dimitar.p.ivanov mentions in a call that this satisfies Dialyzer -- so I'll look into that and see why.

@dimitar.p.ivanov mentions in a call that this satisfies Dialyzer -- so I'll look into that and see why.
dimitar.p.ivanov added 2 commits 2026-05-22 15:57:14 +09:00
dimitar.p.ivanov merged commit 9a7a2a98c4 into master 2026-05-22 16:54:18 +09:00
Sign in to join this conversation.