Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent dialyzer warnings on OTP 23 #105

Merged
merged 3 commits into from
Nov 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Prevent warnings on wrongly -spec.(_)'ed types
  • Loading branch information
paulo-ferraz-oliveira committed Oct 28, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit b3135260270c329a61327be2d46c49439fff3f33
2 changes: 1 addition & 1 deletion src/hex_api_release.erl
Original file line number Diff line number Diff line change
@@ -106,7 +106,7 @@ publish(Config, Tarball) -> publish(Config, Tarball, []).
%% }}}
%% '''
%% @end
-spec publish(hexcore:config(), binary(), publish_params()) -> hex_api:response().
-spec publish(hex_core:config(), binary(), publish_params()) -> hex_api:response().
publish(Config, Tarball, Params) when is_map(Config) andalso is_binary(Tarball) andalso is_list(Params)->
QueryString = hex_api:encode_query_string([{replace, proplists:get_value(replace, Params, false)}]),
Path = hex_api:join_path_segments(hex_api:build_repository_path(Config, ["publish"])),
4 changes: 2 additions & 2 deletions src/hex_registry.erl
Original file line number Diff line number Diff line change
@@ -14,8 +14,8 @@
]).
-include_lib("public_key/include/public_key.hrl").

-type private_key() :: public_key:rsa_private_key() | binary().
-type public_key() :: public_key:rsa_public_key() | binary().
-type private_key() :: #'RSAPrivateKey'{} | binary().
-type public_key() :: #'RSAPublicKey'{} | binary().

%%====================================================================
%% API functions