Skip to content

Commit

Permalink
add fake assertion to garantee
Browse files Browse the repository at this point in the history
  • Loading branch information
victorguarana committed May 1, 2024
1 parent 2358e53 commit c82bafb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gomongo/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ import (
"go.mongodb.org/mongo-driver/mongo"
)

// Collection should always implement ICollection
var _ ICollection[any] = Collection[any]{}

var (
ErrEmptyID = errors.New("id can not be nil")
ErrConnectionNotInitialized = errors.New("connection was not initialized")
Expand Down

0 comments on commit c82bafb

Please sign in to comment.