return early
Vladimir Bauer
6 years ago
| 80 | 80 |
|
| 81 | 81 |
// WithDebugOutput sets debug output.
|
| 82 | 82 |
func WithDebugOutput(w io.Writer) ContainerOption {
|
|
83 |
if w == nil {
|
|
84 |
return nil
|
|
85 |
}
|
| 83 | 86 |
return func(s *pState) {
|
| 84 | |
if w == nil {
|
| 85 | |
return
|
| 86 | |
}
|
| 87 | 87 |
s.debugOut = w
|
| 88 | 88 |
}
|
| 89 | 89 |
}
|