refactor: go modernisation fixes

This commit is contained in:
sam committed 2026-08-29 00:20:05 +10:00
1 parent 8e4923991d
commit b2da85ead1
14 files changed
+41 -53

No files matched your search

+3 -2
View File
@@ -14,6 +14,7 @@ import (
"os"
"os/signal"
"path/filepath"
"slices"
"sort"
"sync/atomic"
"syscall"
@@ -150,8 +151,8 @@ func (b *boot) addCleanup(fn func()) {
}
func (b *boot) cleanup() {
for i := len(b.cleanups) - 1; i >= 0; i-- {
b.cleanups[i]()
for _, v := range slices.Backward(b.cleanups) {
v()
}
}