chore(releaseupdate): adopt go fix errors.AsType rewrite
This commit is contained in:
1 parent
9be45cb08c
commit
ef8afce59c
1 file changed
+1
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user