Codebase list golang-github-vbauerster-mpb / bcd2164
check for nil decorator before wrap Vladimir Bauer 4 years ago
1 changed file(s) with 3 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1616 // +----+--------+---------+--------+
1717 //
1818 func Merge(decorator Decorator, placeholders ...WC) Decorator {
19 if decorator == nil {
20 return nil
21 }
1922 if _, ok := decorator.Sync(); !ok || len(placeholders) == 0 {
2023 return decorator
2124 }