From eb598effa5a74b321bdadd947442553e10ddcf4f Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Fri, 23 Oct 2015 18:58:10 -0400 Subject: [PATCH] Simplify Syntax.map. --- prototype/UI/index.html | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/prototype/UI/index.html b/prototype/UI/index.html index ffe06d93a..463b321d8 100644 --- a/prototype/UI/index.html +++ b/prototype/UI/index.html @@ -150,9 +150,7 @@ // forall a b. Syntax a -> (a -> b) -> Syntax b Syntax.prototype.map = function(transform) { - if (this.indexed != null) { return new Syntax(this, transform); } - if (this.keyed != null) { return new Syntax(this, transform); } - if (this.leaf != null) { return new Syntax(this, transform); } + return new Syntax(this, transform); } function diffFromJSON(json) {