Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vvo committed Oct 21, 2015
1 parent ce7b89e commit 3fab843
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ describe(`reactElementToJSXString(ReactElement)`, () => {
it(`reactElementToJSXString(<div>Hello {this.props.name}</div>`, () => {
class InlineProps extends React.Component {
render() {
return <div>Hello {this.props.name}</div>
return <div>Hello {this.props.name}</div>;
}
}

Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function toJSXString({ReactElement = null, lvl = 0, inline = false}) {
return out;
}

function mergePlainStringChildren(prev, cur, index, arr) {
function mergePlainStringChildren(prev, cur) {
var lastItem = prev[prev.length - 1];

if (typeof lastItem === 'string' && typeof cur === 'string') {
Expand Down

0 comments on commit 3fab843

Please sign in to comment.