mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 08:12:27 -05:00
bumps uptrace/bun dependencies to v1.2.6 (#3569)
This commit is contained in:
parent
a444adee97
commit
3fceb5fc1a
68 changed files with 6517 additions and 194 deletions
10
vendor/github.com/uptrace/bun/query_merge.go
generated
vendored
10
vendor/github.com/uptrace/bun/query_merge.go
generated
vendored
|
|
@ -50,10 +50,12 @@ func (q *MergeQuery) Err(err error) *MergeQuery {
|
|||
return q
|
||||
}
|
||||
|
||||
// Apply calls the fn passing the MergeQuery as an argument.
|
||||
func (q *MergeQuery) Apply(fn func(*MergeQuery) *MergeQuery) *MergeQuery {
|
||||
if fn != nil {
|
||||
return fn(q)
|
||||
// Apply calls each function in fns, passing the MergeQuery as an argument.
|
||||
func (q *MergeQuery) Apply(fns ...func(*MergeQuery) *MergeQuery) *MergeQuery {
|
||||
for _, fn := range fns {
|
||||
if fn != nil {
|
||||
q = fn(q)
|
||||
}
|
||||
}
|
||||
return q
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue