aboutsummaryrefslogtreecommitdiffhomepage
path: root/ext/ext_test.go
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 /ext/ext_test.go
parent725f2e0ef3eaba1ad46b597604a684125ab93911 (diff)
all: apply modernisers
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'ext/ext_test.go')
-rw-r--r--ext/ext_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/ext_test.go b/ext/ext_test.go
index a93a1b52..74d825cd 100644
--- a/ext/ext_test.go
+++ b/ext/ext_test.go
@@ -39,7 +39,7 @@ func TestSyscall(t *testing.T) {
t.Errorf("Unmarshal: %v, want %v", got, tc.want)
}
})
- if errors.As(tc.err, new(ext.SyscallNameError)) {
+ if _, ok := errors.AsType[ext.SyscallNameError](tc.err); ok {
return
}