mirror of
https://codeberg.org/scip/yadu.git
synced 2025-12-16 20:21:00 +01:00
fix #10: check group length before manipulation
This commit is contained in:
@@ -212,7 +212,7 @@ func (h *Handler) appendAttr(wa map[string]interface{}, a slog.Attr) {
|
||||
}
|
||||
wa[name] = innerwa
|
||||
|
||||
if a.Key != "" {
|
||||
if a.Key != "" && len(h.groups) > 0 {
|
||||
h.groups = h.groups[:len(h.groups)-1]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user