From 85c1cba7609cd0c18290dee39d51f0d07845c80b Mon Sep 17 00:00:00 2001 From: Anthony Van de Gejuchte Date: Fri, 24 Feb 2017 01:48:13 +0100 Subject: [PATCH] Remove duplicated code (#1456) [ES6] Remove duplicated code --- lib/output.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/output.js b/lib/output.js index 79165618..056bdb9c 100644 --- a/lib/output.js +++ b/lib/output.js @@ -687,10 +687,8 @@ function OutputStream(options) { if (p instanceof AST_Unary) return true; // (yield x).foo - if (p instanceof AST_Dot && p.expression === this) - return true; // (yield x)['foo'] - if (p instanceof AST_Sub && p.expression === this) + if (p instanceof AST_PropAccess && p.expression === this) return true; });