diff --git a/options.go b/options.go index 58eb5dd..a0ead16 100644 --- a/options.go +++ b/options.go @@ -81,10 +81,10 @@ // WithDebugOutput sets debug output. func WithDebugOutput(w io.Writer) ContainerOption { + if w == nil { + return nil + } return func(s *pState) { - if w == nil { - return - } s.debugOut = w } }