File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -644,20 +644,20 @@ extension SequenceType where Generator.Element == String {
644644 result. reserveCapacity ( n)
645645 }
646646
647- if separatorSize != 0 {
648- var gen = generate ( )
649- if let first = gen. next ( ) {
650- result. appendContentsOf ( first)
651- while let next = gen. next ( ) {
652- result. appendContentsOf ( separator)
653- result. appendContentsOf ( next)
654- }
655- }
656- }
657- else {
647+ if separatorSize == 0 {
658648 for x in self {
659649 result. appendContentsOf ( x)
660650 }
651+ return result
652+ }
653+
654+ var gen = generate ( )
655+ if let first = gen. next ( ) {
656+ result. appendContentsOf ( first)
657+ while let next = gen. next ( ) {
658+ result. appendContentsOf ( separator)
659+ result. appendContentsOf ( next)
660+ }
661661 }
662662
663663 return result
You can’t perform that action at this time.
0 commit comments