Codebase list golang-github-vbauerster-mpb / 960b43c
Check if opt is nil Vladimir Bauer 8 years ago
2 changed file(s) with 6 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
9393 }
9494
9595 for _, opt := range options {
96 opt(s)
96 if opt != nil {
97 opt(s)
98 }
9799 }
98100
99101 s.bufP = bytes.NewBuffer(make([]byte, 0, s.width/2))
6868 }
6969
7070 for _, opt := range options {
71 opt(s)
71 if opt != nil {
72 opt(s)
73 }
7274 }
7375
7476 p := &Progress{