From f869ff95a12756de97827b4afd93763f9661f144 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 8 Jun 2026 14:19:11 +0900 Subject: all: apply modernisers Signed-off-by: Ophestra --- ldd/exec_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ldd/exec_test.go') 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) } -- cgit v1.3.1