Skip to content

Commit

Permalink
fix credo issue
Browse files Browse the repository at this point in the history
  • Loading branch information
patatoid committed Dec 23, 2023
1 parent 7256840 commit 1d21758
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/boruta/oauth/responses/authorize.ex
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ defmodule Boruta.Oauth.AuthorizeResponse do
expires_in = DateTime.diff(expires_at, DateTime.utc_now())

type =
case is_hybrid?(params) do
case hybrid?(params) do
true -> :hybrid
false -> :code
end
Expand Down Expand Up @@ -141,10 +141,10 @@ defmodule Boruta.Oauth.AuthorizeResponse do
end

defp has_token_type?(params) do
is_hybrid?(params) && has_access_token?(params)
hybrid?(params) && has_access_token?(params)
end

defp is_hybrid?(params) do
defp hybrid?(params) do
!is_nil(params[:id_token] || params[:token])
end

Expand Down
1 change: 1 addition & 0 deletions lib/mix/tasks/boruta.gen.migration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ defmodule Mix.Tasks.Boruta.Gen.Migration do
end
end

@dialyzer {:no_return, register_application_repl: 0}
defp register_application_repl do
Finch.start_link(name: RegistrationHttp)
Application.ensure_started(:telemetry)
Expand Down

0 comments on commit 1d21758

Please sign in to comment.