]> Nishi Git Mirror - gwion.git/commitdiff
:art: Remove useless check
authorfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 14:02:28 +0000 (16:02 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Thu, 10 Oct 2019 14:02:28 +0000 (16:02 +0200)
src/lib/func.c

index 0a2841762c35c2edafa669dc8142b4b85c327331..430defb81e756809e34bd2b9ca35ea7e6a6d8b21 100644 (file)
@@ -262,8 +262,6 @@ ANN Type check_exp_unary_spork(const Env env, const Stmt code);
 
 static OP_CHECK(opck_spork) {
   const Exp_Unary* unary = (Exp_Unary*)data;
-  if(exp_self(unary)->next)
-    ERR_O(exp_self(unary)->pos, _("spork/fork must not have next expression"))
   if(unary->exp && unary->exp->exp_type == ae_exp_call)
     return env->gwion->type[unary->op == insert_symbol("spork") ? et_shred : et_fork];
   if(unary->code) {