Codebase list golang-github-vbauerster-mpb / da54e6e
panic on invalid bar style Vladimir Bauer 6 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6666
6767 func (s *barFiller) SetStyle(style string) {
6868 if !utf8.ValidString(style) {
69 return
69 panic("invalid bar style")
7070 }
7171 if style == "" {
7272 style = DefaultBarStyle