Skip to content

Commit

Permalink
Be inclusive of OTP 22
Browse files Browse the repository at this point in the history
(as per CI results)
  • Loading branch information
paulo-ferraz-oliveira committed Jun 16, 2024
1 parent 58e2aa0 commit 49199c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hex_api_release.erl
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ retire(Config, Name, Version, Params0) when
hex_api:post(Config, Path, Params).

maybe_atom_to_binary(K) when is_binary(K) -> K;
maybe_atom_to_binary(K) -> atom_to_binary(K).
maybe_atom_to_binary(K) -> list_to_binary(atom_to_list(K)).

%% @doc
%% Unretires a package release.
Expand Down

0 comments on commit 49199c1

Please sign in to comment.