diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-25 21:28:49 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-25 21:29:24 +0900 |
| commit | 470e545d2761b77f95147f61f633f4d629750ee7 (patch) | |
| tree | 5badf0a34ecaa1487e88ffe6aa0467f7d55cd4c4 /internal/app/process.go | |
| parent | 8d3381821f2a8d257a4c55c0dd311019bd0e78eb (diff) | |
internal/app/state: use internal/lockedfile
This is a pretty solid implementation backed by robust tests, with a much cleaner interface.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/process.go')
| -rw-r--r-- | internal/app/process.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/internal/app/process.go b/internal/app/process.go index 8e18ae64..a0950c27 100644 --- a/internal/app/process.go +++ b/internal/app/process.go @@ -192,12 +192,6 @@ func (ms mainState) beforeExit(isFault bool) { } else if ms.uintptr&mainNeedsDestroy != 0 { panic("unreachable") } - - if ms.store != nil { - if err := ms.store.Close(); err != nil { - perror(err, "close state store") - } - } } // fatal calls printMessageError, performs necessary cleanup, followed by a call to [os.Exit](1). |
