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 {
644
644
result. reserveCapacity ( n)
645
645
}
646
646
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 {
658
648
for x in self {
659
649
result. appendContentsOf ( x)
660
650
}
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
+ }
661
661
}
662
662
663
663
return result
You can’t perform that action at this time.
0 commit comments