From 11359ee4b84b2420605c3fdcf01e3fa03d5fc0cb Mon Sep 17 00:00:00 2001 From: Alberto Mengali Date: Sat, 10 Jun 2023 12:48:59 +0200 Subject: [PATCH] fix type check on 2 args json --- src/helpers.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.jl b/src/helpers.jl index a14e5f4..f5137bb 100644 --- a/src/helpers.jl +++ b/src/helpers.jl @@ -33,7 +33,7 @@ macro json(forgesym::Symbol, def::Expr) catch throw("No struct named $forgesym, pass a valid API to @json $(def.args[2])") end - !(forge <: GitForge.ForgeType) && throw("$forge is not a ForgeType, pass a valid API to @json $(def.args[2])") + !(forge <: GitForge.Forge) && throw("$forge is not a Forge, pass a valid API to @json $(def.args[2])") json(forge, def) end