Skip to content

Commit 1ffde9c

Browse files
authored
Make columns property optional on Worksheet (#14)
As reported in #12, there are worksheets that apparently don't have `cols` node, which means that `columns` property on `Worksheet` should be optional.
1 parent 0c940b2 commit 1ffde9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/CoreXLSX/Worksheet.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ public struct Worksheet: Codable {
1212
public let dimension: WorksheetDimension
1313
public let sheetViews: SheetViews
1414
public let sheetFormatPr: SheetFormatPr
15-
public let columns: Columns
15+
public let columns: Columns?
1616

1717
@available(*, deprecated, renamed: "columns")
18-
public var cols: Cols {
18+
public var cols: Cols? {
1919
return columns
2020
}
2121

0 commit comments

Comments
 (0)