Skip to content

Commit

Permalink
Remove unused typespecs, fix typespec (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
PsychicPlatypus authored Aug 21, 2024
1 parent 50b511d commit 84732f7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/mongo.ex
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,8 @@ defmodule Mongo do
@type conn :: DbConnection.Conn
@type collection :: String.t()
@type cursor :: Mongo.Cursor.t()
@type result(t) :: :ok | {:ok, t} | {:error, Mongo.Error.t()} | {:error, Mongo.WriteError.t()}
@type result(t) :: {:ok, t} | {:error, Mongo.Error.t()} | {:error, Mongo.WriteError.t()}
@type result!(t) :: t
@type initial_type :: :unknown | :single | :replica_set_no_primary | :sharded

defmacrop bangify(result) do
quote do
Expand Down Expand Up @@ -474,7 +473,7 @@ defmodule Mongo do
BSON.document(),
BSON.document(),
Keyword.t()
) :: result(Mongo.FindAndModifyResult.t()) | {:ok, nil}
) :: result(Mongo.FindAndModifyResult.t())
def find_one_and_update(topology_pid, coll, filter, update, opts \\ []) do
_ = modifier_docs(update, :update)

Expand Down

0 comments on commit 84732f7

Please sign in to comment.