Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ianj-als/pcl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Johnson <ianj@wgrids.com>2013-11-14 21:01:46 +0400
committerIan Johnson <ianj@wgrids.com>2013-11-14 21:01:46 +0400
commitb86deac37bba13814c0f4cacc732ab3b2b8d2aa1 (patch)
tree62529cf550bf4789b6a9615d54d9d577acec5823
parent88e9d216887110be31706a2210aa2b1cfef33d0b (diff)
Removed redundant condition.
-rw-r--r--src/pclc/visitors/first_pass_resolver_visitor.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pclc/visitors/first_pass_resolver_visitor.py b/src/pclc/visitors/first_pass_resolver_visitor.py
index b01edaa..ec8fc71 100644
--- a/src/pclc/visitors/first_pass_resolver_visitor.py
+++ b/src/pclc/visitors/first_pass_resolver_visitor.py
@@ -955,8 +955,7 @@ class FirstPassResolverVisitor(ResolverVisitor):
'unknown' : str(ret.value)})
else:
self._add_errors("ERROR: %(filename)s at line %(lineno)d, unknown variable in return %(unknown)s",
- [ret.value] if ret.value not in self._current_scope and \
- ret.value not in self._module.definition.inputs else [],
+ [ret.value] if ret.value not in self._current_scope else [],
lambda v: {'filename' : v.filename,
'lineno' : v.lineno,
'unknown' : str(ret.value)})