Skip to content

Commit 84732f7

Browse files
Remove unused typespecs, fix typespec (#250)
1 parent 50b511d commit 84732f7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/mongo.ex

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,8 @@ defmodule Mongo do
7171
@type conn :: DbConnection.Conn
7272
@type collection :: String.t()
7373
@type cursor :: Mongo.Cursor.t()
74-
@type result(t) :: :ok | {:ok, t} | {:error, Mongo.Error.t()} | {:error, Mongo.WriteError.t()}
74+
@type result(t) :: {:ok, t} | {:error, Mongo.Error.t()} | {:error, Mongo.WriteError.t()}
7575
@type result!(t) :: t
76-
@type initial_type :: :unknown | :single | :replica_set_no_primary | :sharded
7776

7877
defmacrop bangify(result) do
7978
quote do
@@ -474,7 +473,7 @@ defmodule Mongo do
474473
BSON.document(),
475474
BSON.document(),
476475
Keyword.t()
477-
) :: result(Mongo.FindAndModifyResult.t()) | {:ok, nil}
476+
) :: result(Mongo.FindAndModifyResult.t())
478477
def find_one_and_update(topology_pid, coll, filter, update, opts \\ []) do
479478
_ = modifier_docs(update, :update)
480479

0 commit comments

Comments
 (0)