aboutsummaryrefslogtreecommitdiffhomepage
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-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
}