We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89ef54d commit 31fdb14Copy full SHA for 31fdb14
api/api.go
@@ -51,7 +51,7 @@ func (o *EntryOptions) Reset() {
51
o.batchCount = 1
52
o.flag = 0
53
o.slotChain = nil
54
- o.args = nil
+ o.args = o.args[:0]
55
o.attachments = nil
56
}
57
core/base/context.go
@@ -91,9 +91,7 @@ type SentinelInput struct {
91
func (i *SentinelInput) reset() {
92
i.BatchCount = 1
93
i.Flag = 0
94
- if len(i.Args) != 0 {
95
- i.Args = make([]interface{}, 0)
96
- }
+ i.Args = i.Args[:0]
97
if len(i.Attachments) != 0 {
98
i.Attachments = make(map[interface{}]interface{})
99
0 commit comments