Skip to content

Commit 091e42a

Browse files
committed
fix sheet conditional
1 parent 80cfb8e commit 091e42a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/zaxcel/sheet.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def position_rows!
7474
sig { returns(T::Array[T.nilable(T.any(Float, Integer))]) }
7575
def column_widths
7676
columns.map do |col|
77-
next T.cast(col.width, T.nilable(T.any(Float, Integer))) if !Zaxcel::Column::ComputedColumnWidth.value?(col.width)
77+
next T.cast(col.width, T.nilable(T.any(Float, Integer))) if !Zaxcel::Column::ComputedColumnWidth.values.include?(col.width)
7878

7979
character_length = case col.width
8080
when Zaxcel::Column::ComputedColumnWidth::MaxContent

0 commit comments

Comments
 (0)