From 049c019791d4fd1daaa5904a1afaa58905a7032c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Thu, 18 Apr 2013 19:08:19 -0700 Subject: [PATCH] Remove useless check Signed-off-by: Julien Danjou --- hy/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hy/compiler.py b/hy/compiler.py index 362e9c8..19a68df 100644 --- a/hy/compiler.py +++ b/hy/compiler.py @@ -157,7 +157,7 @@ class HyASTCompiler(object): ret = [] - if self.returnable and len(tree) > 0: + if self.returnable: el = tree[0] if not isinstance(el, ast.stmt): el = tree.pop(0)