remove unneeded else
This commit is contained in:
parent
d39a86b126
commit
f901c8c4fe
1 changed files with 22 additions and 23 deletions
|
@ -1172,7 +1172,7 @@ const TimelinePanel = React.createClass({
|
||||||
// return the index of the first invisible event.
|
// return the index of the first invisible event.
|
||||||
if (isInView && adjacentInvisibleEventCount !== 0) {
|
if (isInView && adjacentInvisibleEventCount !== 0) {
|
||||||
return i + adjacentInvisibleEventCount;
|
return i + adjacentInvisibleEventCount;
|
||||||
} else {
|
}
|
||||||
if (node && !isInView) {
|
if (node && !isInView) {
|
||||||
// has node but not in view, so reset adjacent invisible events
|
// has node but not in view, so reset adjacent invisible events
|
||||||
adjacentInvisibleEventCount = 0;
|
adjacentInvisibleEventCount = 0;
|
||||||
|
@ -1201,7 +1201,6 @@ const TimelinePanel = React.createClass({
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue