Skip to content

Commit

Permalink
Remove untested condition
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Mar 12, 2019
1 parent 3a4cf9c commit 87832e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Transition.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ class Transition extends React.Component {
this.setNextCallback(handler)

const doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener
if (!node || doesNotHaveTimeoutOrListener) {
if (doesNotHaveTimeoutOrListener) {
setTimeout(this.nextCallback, 0)
return
}
Expand Down

0 comments on commit 87832e9

Please sign in to comment.