Skip to content

Commit

Permalink
Clean up getproperty redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer authored Oct 19, 2023
1 parent edb7cc8 commit fc33a5a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Tables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,7 @@ function Base.getproperty(sch::Schema{names, types}, field::Symbol) where {names
return names === nothing ? getfield(sch, :storednames) : names
elseif field === :types
if types === nothing
T = getfield(sch, :storedtypes)
return T !== nothing ? T : nothing
return getfield(sch, :storedtypes)
else
ncol = fieldcount(types)
if ncol <= 512
Expand Down

0 comments on commit fc33a5a

Please sign in to comment.