Skip to content

Commit

Permalink
Simplify code
Browse files Browse the repository at this point in the history
Co-authored-by: Rafael Schouten <[email protected]>
  • Loading branch information
asinghvi17 and rafaqz authored Apr 3, 2024
1 parent eaee6eb commit fde9b85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DBFTables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -452,9 +452,9 @@ function Base.getproperty(dbf::Table, name::Symbol)
nrow = header.records
@inbounds field = getfields(dbf)[col]
str = getstrings(dbf)
ft = field.type
fv = Val{field.dbf_type}()
return @inbounds Union{field.type, Missing}[julia_value(ft, fv, str[col, i]) for i = 1:nrow]
FT = field.type
FV = Val{field.dbf_type}()
return @inbounds Union{FT, Missing}[julia_value(FT, FV, str[col, i]) for i = 1:nrow]
end


Expand Down

0 comments on commit fde9b85

Please sign in to comment.