Skip to content

Commit 3fdb748

Browse files
Copilotpikann
andauthored
chore: simplify changes slice initialization in item activity logging
Agent-Logs-Url: https://github.com/Paca-AI/paca-plugin-checklist/sessions/d5f85df3-737f-4cc6-8aa0-975098580c00 Co-authored-by: pikann <41873019+pikann@users.noreply.github.com>
1 parent 6c7e235 commit 3fdb748

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/items.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func (p *checklistPlugin) updateItem(req *plugin.Request, res *plugin.Response)
164164
UpdatedAt: now,
165165
}
166166
// Build change list for the activity record.
167-
changes := make([]map[string]any, 0, 3)
167+
changes := []map[string]any{}
168168
oldTitle := sc.str("title")
169169
if b.Title != nil && *b.Title != oldTitle {
170170
changes = append(changes, map[string]any{"field": "title", "old": oldTitle, "new": *b.Title})

0 commit comments

Comments
 (0)