Codebase list golang-github-vbauerster-mpb / ac1ebec
return early Vladimir Bauer 6 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
8080
8181 // WithDebugOutput sets debug output.
8282 func WithDebugOutput(w io.Writer) ContainerOption {
83 if w == nil {
84 return nil
85 }
8386 return func(s *pState) {
84 if w == nil {
85 return
86 }
8787 s.debugOut = w
8888 }
8989 }