mirror of
https://github.com/kataras/iris.git
synced 2026-01-08 20:41:57 +00:00
minor (see previous commit)
This commit is contained in:
@@ -257,7 +257,7 @@ func (ac *AccessLog) after(ctx *context.Context, lat time.Duration, method, path
|
||||
var fields []memstore.Entry
|
||||
|
||||
if n := len(ac.Fields); n > 0 {
|
||||
fields = make([]memstore.Entry, n)
|
||||
fields = make([]memstore.Entry, 0, n)
|
||||
|
||||
for _, extract := range ac.Fields {
|
||||
key, value := extract(ctx)
|
||||
|
||||
Reference in New Issue
Block a user