Skip to content

Commit 8d37ba6

Browse files
author
Ben Baumgold
committed
#62 use isa instead of ==
1 parent 06a80af commit 8d37ba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TableView.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function showtable(table, options::Dict{Symbol, Any} = Dict{Symbol, Any}();
6969
)
7070
rows = Tables.rows(table)
7171
it_sz = Base.IteratorSize(rows)
72-
has_len = it_sz == Base.HasLength() || it_sz == Base.HasShape{1}()
72+
has_len = it_sz isa Base.HasLength || it_sz isa Base.HasShape
7373
tablelength = has_len ? length(rows) : nothing
7474

7575
if height === :auto

0 commit comments

Comments
 (0)