Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
mlambir committed Dec 20, 2019
1 parent 846e943 commit 5993852
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/coophub/repos_warmer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -217,19 +217,20 @@ defmodule Coophub.Repos.Warmer do

{:error, reason} ->
Logger.error(
"Error getting repo data for '#{org}/#{repo_name}' from github: #{
inspect(reason)
}"
"Error getting repo data for '#{org}/#{repo_name}' from github: #{inspect(reason)}"
)

%{}
end

parent = Map.get(repo_data, "parent")

case parent do
%{"full_name" => name, "html_url" => url} ->
Map.put(repo, "parent", %{"name" => name, "url" => url})
_ -> repo

_ ->
repo
end
end)
end
Expand Down

0 comments on commit 5993852

Please sign in to comment.