Skip to content

Commit

Permalink
Minor code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
palikar committed Jul 14, 2020
1 parent 57b2f05 commit 4362463
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/alisp/src/definitions/alisp_language.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,21 +244,7 @@ ALObjectPtr Fimport(const ALObjectPtr &obj, env::Environment *env, eval::Evaluat
}
}

if (env->module_loaded(module_name))
{

env->alias_module(module_name, import_as);

if (import_all)
{
env->import_root_scope(module_name, env->current_module());
}

return Qt;
}

// check if this is a built in module
if (env->load_builtin_module(module_name, eval))
if (env->module_loaded(module_name) or env->load_builtin_module(module_name, eval))
{

env->alias_module(module_name, import_as);
Expand Down

0 comments on commit 4362463

Please sign in to comment.