all: apply modernisers

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-06-08 14:19:11 +09:00
parent 725f2e0ef3
commit f869ff95a1
35 changed files with 146 additions and 141 deletions
+8 -8
View File
@@ -1,11 +1,11 @@
//go:build testtool
/*
Package sandbox provides utilities for checking sandbox outcome.
This package must never be used outside integration tests, there is a much better native implementation of mountinfo
in the public sandbox/vfs package. Files in this package are excluded by the build system to prevent accidental misuse.
*/
// Package sandbox provides utilities for checking sandbox outcome.
//
// This package must never be used outside integration tests, there is a much
// better native implementation of mountinfo in the public sandbox/vfs package.
// Files in this package are excluded by the build system to prevent accidental
// misuse.
package sandbox
import (
@@ -204,8 +204,8 @@ func MustCheckFilter(pid int, want string) {
return
}
var perr *ptraceError
if !errors.As(err, &perr) {
perr, ok := errors.AsType[*ptraceError](err)
if !ok {
fatalf("%s", err)
}
switch perr.op {