mirror of
https://github.com/astaxie/beego.git
synced 2024-11-23 17:40:56 +00:00
commit
a00b54d8f6
@ -152,5 +152,8 @@ func (c *Condition) IsEmpty() bool {
|
|||||||
|
|
||||||
// clone clone a condition
|
// clone clone a condition
|
||||||
func (c Condition) clone() *Condition {
|
func (c Condition) clone() *Condition {
|
||||||
|
params := make([]condValue, len(c.params))
|
||||||
|
copy(params, c.params)
|
||||||
|
c.params = params
|
||||||
return &c
|
return &c
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user