Codebase list golang-github-vbauerster-mpb / 1b5a88f
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
174174 // SpinnerStyle sets custom spinner style.
175175 // Effective when Filler type is spinner.
176176 func SpinnerStyle(frames []string) BarOption {
177 if len(frames) == 0 {
178 return nil
179 }
177180 chk := func(filler Filler) (interface{}, bool) {
178 if len(frames) == 0 {
179 return nil, false
180 }
181181 t, ok := filler.(*spinnerFiller)
182182 return t, ok
183183 }