Skip to content

Commit

Permalink
Add rebar.config, dialyzer fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Sep 1, 2021
1 parent d317686 commit 67c8685
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 47 deletions.
26 changes: 26 additions & 0 deletions rebar.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
%%
%% rebar configuration file (https://github.com/rebar/rebar)
%%

{require_min_otp_vsn, "21"}.

{erl_opts, [
debug_info,
fail_on_warning
]
}.

{xref_checks, [
undefined_function_calls,
locals_not_used,
deprecated_function_calls
]}.

{xref_ignores, [
]}.

{dialyzer, [
{warnings, [
% no_return
]}
]}.
1 change: 1 addition & 0 deletions rebar.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[].
2 changes: 0 additions & 2 deletions src/oauth.erl
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,6 @@ rsa_sha1_verify(Signature, BaseString, Consumer) when is_binary(BaseString) ->
rsa_sha1_verify(Signature, BaseString, Consumer) when is_list(BaseString) ->
rsa_sha1_verify(Signature, list_to_binary(BaseString), Consumer).

verify_in_constant_time(<<X/binary>>, <<Y/binary>>) ->
verify_in_constant_time(binary_to_list(X), binary_to_list(Y));
verify_in_constant_time(X, Y) when is_list(X) and is_list(Y) ->
case length(X) == length(Y) of
true ->
Expand Down
45 changes: 0 additions & 45 deletions test.escript

This file was deleted.

0 comments on commit 67c8685

Please sign in to comment.