]> Nishi Git Mirror - gwion.git/commitdiff
:art: Clean logic 139/head
authorfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 2 Jul 2019 21:24:02 +0000 (23:24 +0200)
committerfennecdjay <astor.jeremie@wanadoo.fr>
Tue, 2 Jul 2019 21:24:02 +0000 (23:24 +0200)
src/oo/env_utils.c

index 4951263183d8dad8ea1ec6f8a6a496d348b18084..d41ba904506843ce487d5419de1b81867c9f3888 100644 (file)
@@ -61,7 +61,7 @@ ANN Type find_type(const Env env, ID_List path) {
     const Symbol xid = path->xid;
     if(nspc) {
       Type t = nspc_lookup_type1(nspc, xid);
-      while(!t && type && type->e->parent && type->e->parent) {
+      while(!t && type && type->e->parent) {
         t = nspc_lookup_type1(type->e->parent->nspc, xid); // was lookup2
         type = type->e->parent;
       }