Skip to content

Commit

Permalink
style(mixed): fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Fedyashov committed Aug 31, 2017
1 parent 65aaa1d commit ddcd37d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/addons/Ref/Ref.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default class Ref extends Component {

// Heads up! Don't move this condition, it's a short circle that avoids run of `findDOMNode`
// if `innerRef` isn't passed
if (innerRef) innerRef(findDOMNode(this))
if (innerRef) innerRef(findDOMNode(this)) // eslint-disable-line react/no-find-dom-node
}

render() {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/getElementType.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const computeElementType = (Component, props, getDefault) => {
// computed default element type

if (getDefault) {
const computedDefault = getDefault()
const computedDefault = typeof getDefault === 'function' ? getDefault() : getDefault
if (computedDefault) return computedDefault
}

Expand Down
2 changes: 1 addition & 1 deletion test/specs/addons/Ref/Ref-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const nodeMount = (Component, innerRef) => (
mount(
<Ref innerRef={innerRef}>
<Component />
</Ref>
</Ref>,
)
.find('#node')
.getDOMNode()
Expand Down
6 changes: 3 additions & 3 deletions test/specs/addons/Ref/fixtures.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-disable react/no-multi-comp */
/* eslint-disable */
import React, { Component } from 'react'

export const DOMFunction = (props) => <div {...props} id='node' />
export const DOMFunction = props => <div {...props} id='node' />

export const CompositeFunction = (props) => <DOMFunction {...props} />
export const CompositeFunction = props => <DOMFunction {...props} />

export class DOMClass extends Component {
render() {
Expand Down

0 comments on commit ddcd37d

Please sign in to comment.