Codebase list golang-github-vbauerster-mpb / db362b3
don't merge if there are no placeholders Vladimir Bauer 7 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
1414 // +--------+---------+
1515 //
1616 func Merge(decorator Decorator, placeholders ...WC) Decorator {
17 if _, ok := decorator.Sync(); !ok {
17 if _, ok := decorator.Sync(); !ok || len(placeholders) == 0 {
1818 return decorator
1919 }
2020 md := &MergeDecorator{Decorator: decorator}