From cd135f934ce98e0595ce99a201d36ba0bf137125 Mon Sep 17 00:00:00 2001 From: Conduitry Date: Wed, 11 Dec 2019 10:34:18 -0500 Subject: [PATCH] lint/tidy --- src/compiler/compile/render_dom/Block.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/compiler/compile/render_dom/Block.ts b/src/compiler/compile/render_dom/Block.ts index 3b5dd22ded..2297f7ed19 100644 --- a/src/compiler/compile/render_dom/Block.ts +++ b/src/compiler/compile/render_dom/Block.ts @@ -1,7 +1,7 @@ import Renderer from './Renderer'; import Wrapper from './wrappers/shared/Wrapper'; import { b, x } from 'code-red'; -import { Node, Identifier, ArrayPattern } from 'estree'; +import { Node, Identifier } from 'estree'; import { is_head } from './wrappers/shared/is_head'; export interface BlockOptions { @@ -301,9 +301,7 @@ export default class Block { } else { const ctx = this.maintain_context ? x`#new_ctx` : x`#ctx`; - let dirty: Identifier | ArrayPattern = { type: 'Identifier', name: '#dirty' }; - - properties.update = x`function #update(${ctx}, ${dirty}) { + properties.update = x`function #update(${ctx}, #dirty) { ${this.maintain_context && b`#ctx = ${ctx};`} ${this.chunks.update} }`;