aboutsummaryrefslogtreecommitdiffhomepage
path: root/ldd
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-06-08 14:19:11 +0900
committerOphestra <cat@gensokyo.uk>2026-06-08 14:58:24 +0900
commitf869ff95a12756de97827b4afd93763f9661f144 (patch)
tree6f5445ae623f44ceb99c8f7ddb5bb4cd1fb04aa0 /ldd
parent725f2e0ef3eaba1ad46b597604a684125ab93911 (diff)
all: apply modernisers
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'ldd')
-rw-r--r--ldd/exec_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ldd/exec_test.go b/ldd/exec_test.go
index b24b30e4..4621d335 100644
--- a/ldd/exec_test.go
+++ b/ldd/exec_test.go
@@ -20,8 +20,8 @@ func TestExec(t *testing.T) {
_, err := ldd.Resolve(t.Context(), nil, check.MustAbs("/proc/nonexistent"))
- var exitError *exec.ExitError
- if !errors.As(err, &exitError) {
+ exitError, ok := errors.AsType[*exec.ExitError](err)
+ if !ok {
t.Fatalf("Exec: error has incorrect concrete type: %#v", err)
}