diff --git a/src/Prometheus.jl b/src/Prometheus.jl index 3979537..f9e5698 100644 --- a/src/Prometheus.jl +++ b/src/Prometheus.jl @@ -25,9 +25,7 @@ unreachable() = throw(UnreachableError()) struct AssertionError <: PrometheusException end macro assert(cond) - return quote - $(esc(cond)) || throw(AssertionError()) - end + return :($(esc(cond)) || throw(AssertionError())) end function Base.showerror(io::IO, err::Union{AssertionError, UnreachableError})