aboutsummaryrefslogtreecommitdiff
path: root/internal/admin/undo.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-07-09 17:54:11 -0400
committerhistoria <[not public]>2026-07-09 17:54:35 -0400
commit18c7af94b30c2767b6633d050324c1db34074ce2 (patch)
tree84755755a028fe1d8ace94b247993064196c7bbb /internal/admin/undo.go
parent7ea40cbd00f7ddae53a8e43dd018d62ca798f8cf (diff)
downloadthehouseoficarus-18c7af94b30c2767b6633d050324c1db34074ce2.tar.gz
feat(admin): remove unused undo history on server boot
Diffstat (limited to 'internal/admin/undo.go')
-rw-r--r--internal/admin/undo.go5
1 files changed, 1 insertions, 4 deletions
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) {