Skip to content

Commit

Permalink
add pipone
Browse files Browse the repository at this point in the history
  • Loading branch information
pinguo-guzhongzhi committed Sep 23, 2024
1 parent 59a2f0a commit 465f4af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adapter/mongodb.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (m *Mongodb) UpsertIdCtx(ctx context.Context, id interface{}, replacement i
func handleOptions(query qmgo.QueryI, options ...bson.M) (qmgo.QueryI, error) {
opts := make(map[string]interface{})
for _, opt := range options {
if opt == nil {
if opt == nil || len(opt) == 0 {
continue
}
for k, v := range opt {
Expand Down

0 comments on commit 465f4af

Please sign in to comment.