fix: golangci-lint config

This commit is contained in:
Julian Sommer
2026-05-20 10:23:42 +10:00
parent c5e65cae38
commit 2032e1518f
2 changed files with 3 additions and 3 deletions
-1
View File
@@ -93,7 +93,6 @@ linters:
modernize:
disable:
- newexpr # don't replace aws.String() with new() — AWS SDK idiom
- slicesbackward # less readable
- stringsbuilder # don't replace small string concatenations with strings.Builder
perfsprint:
+3 -2
View File
@@ -27,6 +27,7 @@ import (
"os"
"os/exec"
"path/filepath"
"slices"
"strings"
"syscall"
"time"
@@ -850,8 +851,8 @@ func bindChrootMounts() error {
// unbindChrootMounts unmounts the virtual filesystems in reverse order.
// Errors are logged but not returned — this is best-effort cleanup.
func unbindChrootMounts() {
for i := len(chrootMountPaths) - 1; i >= 0; i-- {
_ = run("umount", filepath.Join(mountRoot, chrootMountPaths[i]))
for _, v := range slices.Backward(chrootMountPaths) {
_ = run("umount", filepath.Join(mountRoot, v))
}
}