Skip to content

Commit 39ce47d

Browse files
committed
Format
1 parent 6c650a8 commit 39ce47d

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

lib/bob/docker_hub.ex

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,4 @@ defmodule Bob.DockerHub do
8888
{:binary.copy(result["name"]), archs}
8989
end
9090
end
91-
9291
end

lib/bob/docker_hub/cache.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ defmodule Bob.DockerHub.Cache do
120120
Stream.resource(
121121
fn -> :ets.match(__MODULE__, {{:data, repo, :"$1"}, :"$2"}, 1000) end,
122122
fn
123-
:"$end_of_table" -> {:halt, nil}
123+
:"$end_of_table" ->
124+
{:halt, nil}
125+
124126
{matches, cont} ->
125127
{Enum.map(matches, fn [tag, archs] -> {tag, archs} end), :ets.match(cont)}
126128
end,

lib/bob/docker_hub/pager.ex

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,15 @@ defmodule Bob.DockerHub.Pager do
1717
end
1818

1919
def init({url, on_result}) do
20-
{:ok, next_request(%{url: url, on_result: on_result, page: 1, tasks: MapSet.new(), results: [], reply: nil})}
20+
{:ok,
21+
next_request(%{
22+
url: url,
23+
on_result: on_result,
24+
page: 1,
25+
tasks: MapSet.new(),
26+
results: [],
27+
reply: nil
28+
})}
2129
end
2230

2331
def handle_call(:wait, from, state) do

0 commit comments

Comments
 (0)