chore(releaseupdate): adopt go fix errors.AsType rewrite

This commit is contained in:
sam committed 2026-09-13 15:00:36 +10:00
1 parent 27203c6523
commit cc0dc3915a
1 file changed
+1 -2
+1 -2
View File
@@ -63,8 +63,7 @@ func runUpdateCheckScript(t *testing.T, run checkRun) (Snapshot, []string, strin
)
output, err := cmd.Output()
var stderr string
var exitErr *exec.ExitError
if errors.As(err, &exitErr) {
if exitErr, ok := errors.AsType[*exec.ExitError](err); ok {
stderr = string(exitErr.Stderr)
}
var calls []string