Skip to content

Commit

Permalink
Fix pattern mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
doomspork committed Dec 29, 2018
1 parent e242552 commit 5cbf0cb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/admissions/registrar.ex
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@ defmodule Admissions.Registrar do
end

defp contributor?(client, nickname, org, repo) do
client
|> Contributors.list(org, repo)
|> Enum.any?(&(Map.get(&1, "login") == nickname))
with {_status_code, contributors, _http_response} <- Contributors.list(client, org, repo)
do
Enum.any?(contributors, &(Map.get(&1, "login") == nickname))
else
_ -> false
end
end

defp org_contributor?(client, nickname, {org, repos}) do
Expand Down

0 comments on commit 5cbf0cb

Please sign in to comment.