From 4f67c745bb1bc373bd68f7a05fe2fefde736e6ce Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Wed, 9 Oct 2019 22:26:08 +0200 Subject: [PATCH] :art: Remove useless test --- src/parse/scan2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/parse/scan2.c b/src/parse/scan2.c index f9ee49bd..fa19de23 100644 --- a/src/parse/scan2.c +++ b/src/parse/scan2.c @@ -437,8 +437,7 @@ ANN static m_str func_tmpl_name(const Env env, const Func_Def f) { vector_init(&v); do { const Type t = nspc_lookup_type0(env->curr, id->xid); - if(!t) - continue; + assert(t); vector_add(&v, (vtype)t); tlen += strlen(t->name); } while((id = id->next) && ++tlen); -- 2.43.0