Skip to content

Commit 6defd3e

Browse files
committed
Fixing lint warning and fix for publish to cocoapods
1 parent 79707a3 commit 6defd3e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.swift-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.0

Sources/Dollar.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1238,11 +1238,11 @@ open class $ {
12381238
/// - parameter matrix: Generic matrix containing any type.
12391239
/// - returns: A transposed version of input matrix.
12401240
open class func transpose<T>(_ matrix: [[T]]) -> [[T]] {
1241-
guard matrix.filter({ return $0.count == matrix[0].count }).count == matrix.count,
1242-
var returnMatrix: [[T?]] = Array(repeating: Array(repeating: nil, count: matrix.count),
1243-
count: matrix.first!.count) else {
1241+
guard matrix.filter({ return $0.count == matrix[0].count }).count == matrix.count else {
12441242
return matrix
12451243
}
1244+
var returnMatrix: [[T?]] = Array(repeating: Array(repeating: nil, count: matrix.count),
1245+
count: matrix.first!.count)
12461246
for (rowNumber, row) in matrix.enumerated() {
12471247
for (index, item) in row.enumerated() {
12481248
returnMatrix[index][rowNumber] = item

0 commit comments

Comments
 (0)