From 8683fbc1d1fe8cd65035e8d22e0263a2ecf7e7e4 Mon Sep 17 00:00:00 2001 From: Anthony Van de Gejuchte Date: Tue, 31 Jan 2017 23:00:15 +0100 Subject: [PATCH] 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; });