Skip to content

Commit 09d6182

Browse files
committed
mix format
1 parent 48a3e76 commit 09d6182

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

lib/mongo.ex

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,11 +1137,11 @@ defmodule Mongo do
11371137

11381138
true ->
11391139
{:ok,
1140-
%Mongo.UpdateResult{
1141-
matched_count: n,
1142-
modified_count: n_modified,
1143-
upserted_ids: filter_upsert_ids(upserted)
1144-
}}
1140+
%Mongo.UpdateResult{
1141+
matched_count: n,
1142+
modified_count: n_modified,
1143+
upserted_ids: filter_upsert_ids(upserted)
1144+
}}
11451145
end
11461146

11471147
%{"n" => n, "nModified" => n_modified} ->
@@ -1284,7 +1284,7 @@ defmodule Mongo do
12841284
]
12851285
|> filter_nils()
12861286

1287-
with {:ok, _} <- admin_command(topology_pid, cmd) do
1287+
with {:ok, _} <- admin_command(topology_pid, cmd) do
12881288
:ok
12891289
end
12901290
end
@@ -1529,7 +1529,6 @@ defmodule Mongo do
15291529
end
15301530
end
15311531

1532-
15331532
@doc """
15341533
Generates a new `BSON.ObjectId`.
15351534
"""
@@ -1863,5 +1862,4 @@ defmodule Mongo do
18631862
def get_session(opts) do
18641863
Process.get(:session) || opts[:session]
18651864
end
1866-
18671865
end

lib/mongo/bulk_write.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ defmodule Mongo.BulkWrite do
183183
"""
184184
@spec write(GenServer.server(), UnorderedBulk.t() | OrderedBulk.t(), Keyword.t()) :: Mongo.BulkWriteResult.t()
185185
def write(topology_pid, bulk, opts \\ [])
186+
186187
def write(topology_pid, %UnorderedBulk{} = bulk, opts) do
187188
in_write_session(topology_pid, &one_bulk_write(&1, topology_pid, bulk, &2), opts)
188189
end

test/mongo/collection_test.exs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,4 @@ defmodule Mongo.CollectionTest do
4444
assert :ok == Mongo.drop_collection(c.pid, coll)
4545
assert nil == Mongo.show_collections(c.pid) |> Enum.find(fn c -> c == coll end)
4646
end
47-
4847
end

0 commit comments

Comments
 (0)