Skip to content

Commit

Permalink
chore: implement LSP suggestion (could apply De Morgan's law)
Browse files Browse the repository at this point in the history
Improves readability (IMHO) so thought to implement it.
  • Loading branch information
svanharmelen committed Oct 1, 2023
1 parent f53b3f6 commit da3a04e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion query_merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func NewMergeQuery(db *DB) *MergeQuery {
conn: db.DB,
},
}
if !(q.db.dialect.Name() == dialect.MSSQL || q.db.dialect.Name() == dialect.PG) {
if q.db.dialect.Name() != dialect.MSSQL && q.db.dialect.Name() != dialect.PG {
q.err = errors.New("bun: merge not supported for current dialect")
}
return q
Expand Down

0 comments on commit da3a04e

Please sign in to comment.