Why does dialyzer show no warning here?

I had similar question here…

and got nice answers.

TLDR:
As long as one path is ok, there will be no warning.
You can define type like good_response, bad_response.

:: binary() | error_type

2 Likes