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 8, 2020
1 parent 4db14b9 commit 1a6c882
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 1a6c882

Please sign in to comment.