Skip to content

Commit

Permalink
Remove empty _COMPILED_DIR check
Browse files Browse the repository at this point in the history
  • Loading branch information
omus committed Aug 12, 2023
1 parent aba714a commit e08c65a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/types/timezone.jl
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,6 @@ function TimeZone(str::AbstractString, mask::Class=Class(:DEFAULT))
tz, class = get(_TZ_CACHE, str) do
if occursin(FIXED_TIME_ZONE_REGEX, str)
FixedTimeZone(str), Class(:FIXED)
elseif !isdir(_COMPILED_DIR[]) || isempty(readdir(_COMPILED_DIR[]))
# Note: Julia 1.0 supresses the build logs which can hide issues in time zone
# compliation which result in no tzdata time zones being available.
throw(ArgumentError(
"Unable to find time zone \"$str\". Try running `TimeZones.build()`."
))
else
throw(ArgumentError("Unknown time zone \"$str\""))
end
Expand Down

0 comments on commit e08c65a

Please sign in to comment.