Skip to content

Commit

Permalink
does this fix anything...?
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC committed Oct 6, 2020
1 parent fef1537 commit 67822ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ julia> @assert isodd(3) "What even are numbers?"
```
"""
macro assert(ex, msgs...)
@isdefined(isdebug) && !(isdebug()) && return nothing
isdefined(@__MODULE__, :isdebug) && !(isdebug()) && return nothing
msg = isempty(msgs) ? ex : msgs[1]
if isa(msg, AbstractString)
msg = msg # pass-through
Expand Down

0 comments on commit 67822ee

Please sign in to comment.