Skip to content

Commit

Permalink
linted solution
Browse files Browse the repository at this point in the history
  • Loading branch information
Havunen committed Jan 7, 2017
1 parent eb810f2 commit 418892a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/DOM/__tests__/normalization.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ describe('Normalization process', () => {
return <div>{this.props.i} ({i++})</div>;
}
}

render(
<div>
<A i={0} />
Expand Down
5 changes: 2 additions & 3 deletions src/core/normalization.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function applyKeyPrefix(key: string, vNode: VNode): VNode {
function _normalizeVNodes(nodes: any[], result: VNode[], index: number, currentKey) {
for (; index < nodes.length; index++) {
let n = nodes[index];
const key = `${ currentKey }.${ index }`
const key = `${ currentKey }.${ index }`;

if (!isInvalid(n)) {
if (isArray(n)) {
Expand Down Expand Up @@ -191,9 +191,8 @@ export function normalize(vNode: VNode): void {
});
}


if (vNode.children && Array.isArray(vNode.children)) {
verifyKeys(vNode.children)
verifyKeys(vNode.children);
}
}
}
6 changes: 3 additions & 3 deletions src/inferno.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ declare module 'inferno-server' {
export function renderToStaticMarkup(...rest);

export default {
renderToString(...rest),
renderToStaticMarkup(...rest),
}
renderToString,
renderToStaticMarkup
};
}

declare module 'inferno-create-class' {
Expand Down

0 comments on commit 418892a

Please sign in to comment.