Skip to content

Commit 0f5d9e3

Browse files
committed
swift-format gives its opinions.
1 parent 73237e9 commit 0f5d9e3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Algorithms/LazySplitSequence.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ extension LazySplitSequence.Iterator: IteratorProtocol {
8484
// than the number of separators), or the only subsequence left to return is
8585
// empty and we're omitting those.
8686
if currentElement == nil
87-
&& (sequenceLength == separatorCount + 1
88-
|| omittingEmptySubsequences && subsequence.isEmpty) {
87+
&& (sequenceLength == separatorCount + 1
88+
|| omittingEmptySubsequences && subsequence.isEmpty)
89+
{
8990
return nil
9091
} else {
9192
sequenceLength += 1

Tests/SwiftAlgorithmsTests/LazySplitSequenceTests.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,8 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12-
import XCTest
13-
1412
import Algorithms
13+
import XCTest
1514

1615
final class LazySplitSequenceTests: XCTestCase {
1716
fileprivate static let isEven = { $0 % 2 == 0 }

0 commit comments

Comments
 (0)