mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
bumps uptrace/bun dependencies to v1.2.6 (#3569)
This commit is contained in:
9
vendor/github.com/uptrace/bun/query_column_add.go
generated
vendored
9
vendor/github.com/uptrace/bun/query_column_add.go
generated
vendored
@ -42,9 +42,12 @@ func (q *AddColumnQuery) Err(err error) *AddColumnQuery {
|
||||
return q
|
||||
}
|
||||
|
||||
func (q *AddColumnQuery) Apply(fn func(*AddColumnQuery) *AddColumnQuery) *AddColumnQuery {
|
||||
if fn != nil {
|
||||
return fn(q)
|
||||
// Apply calls each function in fns, passing the AddColumnQuery as an argument.
|
||||
func (q *AddColumnQuery) Apply(fns ...func(*AddColumnQuery) *AddColumnQuery) *AddColumnQuery {
|
||||
for _, fn := range fns {
|
||||
if fn != nil {
|
||||
q = fn(q)
|
||||
}
|
||||
}
|
||||
return q
|
||||
}
|
||||
|
Reference in New Issue
Block a user