Commits

Even Wiik Thomassen committed 2b12a78

Remove an if-statement that was a tautology.

The if-statement two lines above made the line I remove
redundant.

Comments (0)

Files changed (1)

pyhaskell/interpreter/jscparser.py

         # Application
         elif type_ == 'aexp' and len(node.children) == 2:
             expr = self.visit_expression(node.children[0].children[1])
-            if len(node.children) == 2 and type_ == 'aexp':
-                child = node.children[1].children[1].children[0].children[0]
-                if get_string(child) != 'aty':
-                    arg = self.visit_expression(node.children[1].children[1])
-                    expr = make_partial_app(expr, [arg])
+            child = node.children[1].children[1].children[0].children[0]
+            if get_string(child) != 'aty':
+                arg = self.visit_expression(node.children[1].children[1])
+                expr = make_partial_app(expr, [arg])
 
         # Lambda expression
         elif type_ == 'lambda':