diff options
| author | historia <[not public]> | 2026-07-09 17:54:11 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-09 17:54:35 -0400 |
| commit | 18c7af94b30c2767b6633d050324c1db34074ce2 (patch) | |
| tree | 84755755a028fe1d8ace94b247993064196c7bbb /internal | |
| parent | 7ea40cbd00f7ddae53a8e43dd018d62ca798f8cf (diff) | |
| download | thehouseoficarus-18c7af94b30c2767b6633d050324c1db34074ce2.tar.gz | |
feat(admin): remove unused undo history on server boot
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/admin/undo.go | 5 |
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) { |
