diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-06-08 14:19:11 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-06-08 14:58:24 +0900 |
| commit | f869ff95a12756de97827b4afd93763f9661f144 (patch) | |
| tree | 6f5445ae623f44ceb99c8f7ddb5bb4cd1fb04aa0 /internal/outcome/shim.go | |
| parent | 725f2e0ef3eaba1ad46b597604a684125ab93911 (diff) | |
all: apply modernisers
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/outcome/shim.go')
| -rw-r--r-- | internal/outcome/shim.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/outcome/shim.go b/internal/outcome/shim.go index b2074928..6e039b65 100644 --- a/internal/outcome/shim.go +++ b/internal/outcome/shim.go @@ -390,8 +390,8 @@ func shimEntrypoint(k syscallDispatcher) { if err := k.containerWait(z); err != nil { sp.destroy() - var exitError *exec.ExitError - if !errors.As(err, &exitError) { + exitError, ok := errors.AsType[*exec.ExitError](err) + if !ok { if errors.Is(err, context.Canceled) { k.exit(hst.ExitCancel) } |
