Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jul 10, 2019
1 parent a57dfb6 commit a56c699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/compiler/compile/render_dom/wrappers/Element/Binding.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ export default class BindingWrapper {
if (parent.node.name === 'input') {
const type = parent.node.get_static_attribute_value('type');

if (type === null || type === "" || type === "text"
|| type === "email" || type === "password") {
if (type === null || type === "" || type === "text" || type === "email" || type === "password") {
update_conditions.push(`(${parent.var}.${this.node.name} !== ${this.snippet})`);
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/compiler/compile/render_dom/wrappers/Fragment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import { INode } from '../../nodes/interfaces';
import Renderer from '../Renderer';
import Block from '../Block';
import { trim_start, trim_end } from '../../../utils/trim';
import TextWrapper from './Text';

const wrappers = {
AwaitBlock,
Expand Down Expand Up @@ -103,7 +102,7 @@ export default class FragmentWrapper {

// glue text nodes (which could e.g. be separated by comments) together
if (last_child && last_child.node.type === 'Text') {
(last_child as TextWrapper).data = data + (last_child as TextWrapper).data;
(last_child as Text).data = data + (last_child as Text).data;
continue;
}

Expand Down

0 comments on commit a56c699

Please sign in to comment.