From c197c8b5247fa433ced98e918f14f955d19d6c7f Mon Sep 17 00:00:00 2001 From: fennecdjay Date: Thu, 7 Nov 2024 06:50:22 +0100 Subject: [PATCH] :fire: just clean validate.c a bit --- src/parse/validate.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/parse/validate.c b/src/parse/validate.c index 4fc3d029..7ccf6cfd 100644 --- a/src/parse/validate.c +++ b/src/parse/validate.c @@ -43,11 +43,9 @@ ANN static bool validate_specialized_list(Validate *a, Specialized_List b) { } ANN static bool validate_tmplarg(Validate *a, TmplArg *b) { - bool ret = true; if (b->type == tmplarg_td) - CHECK_RET(validate_type_decl(a, b->d.td), ret); - else CHECK_RET(validate_exp(a, b->d.exp), ret); - return ret; + return validate_type_decl(a, b->d.td); + return validate_exp(a, b->d.exp); } ANN static bool validate_tmplarg_list(Validate *a, TmplArg_List b) { -- 2.43.0