From 18c7af94b30c2767b6633d050324c1db34074ce2 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Thu, 9 Jul 2026 17:54:11 -0400 Subject: feat(admin): remove unused undo history on server boot --- internal/admin/undo.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'internal') diff --git a/internal/admin/undo.go b/internal/admin/undo.go index 53af942..5e1e6a3 100644 --- a/internal/admin/undo.go +++ b/internal/admin/undo.go @@ -66,14 +66,11 @@ type UndoStack struct { } func NewUndoStack(dataDir string) *UndoStack { - us := &UndoStack{ + return &UndoStack{ dataDir: dataDir, maxSize: 100, filePath: filepath.Join(dataDir, ".admin_history.json"), } - us.load() - us.redo = nil - return us } func (us *UndoStack) Push(desc ChangeDesc) { -- cgit v1.2.3