diff options
Diffstat (limited to 'internal/outcome/shim.go')
| -rw-r--r-- | internal/outcome/shim.go | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/internal/outcome/shim.go b/internal/outcome/shim.go index 53d04ea2..b07770b4 100644 --- a/internal/outcome/shim.go +++ b/internal/outcome/shim.go @@ -147,6 +147,9 @@ func shimEntrypoint(k syscallDispatcher) { } } } + if stateParams.params.Ops == nil { // unreachable + k.fatal("invalid container params") + } // shim exit outcomes var cancelContainer atomic.Pointer[context.CancelFunc] @@ -187,10 +190,6 @@ func shimEntrypoint(k syscallDispatcher) { } }) - if stateParams.params.Ops == nil { - k.fatal("invalid container params") - } - // close setup socket if err := closeSetup(); err != nil { msg.Verbosef("cannot close setup pipe: %v", err) |
