From f1caaa5148e35404e84801b40c0fff4936ebe883 Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Sat, 26 Oct 2019 21:21:44 +0200 Subject: [PATCH] :art: Enforce use of name_valid --- src/lib/import.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/import.c b/src/lib/import.c index 8d113151..f34d135d 100644 --- a/src/lib/import.c +++ b/src/lib/import.c @@ -119,8 +119,7 @@ ANN2(1,2) Type gwi_mk_type(const Gwi gwi NUSED, const m_str name, const m_uint s } ANN m_int gwi_add_type(const Gwi gwi, const Type type) { - if(type->name[0] != '@') - CHECK_BB(name_valid(gwi, type->name)); + CHECK_BB(name_valid(gwi, type->name)); env_add_type(gwi->gwion->env, type); return (m_int)type->xid; } -- 2.43.0