remove unneeded else

pull/21833/head
Bruno Windels 2019-07-15 14:02:41 +02:00
parent 034883dc7e
commit 7e25e1b2fc
1 changed files with 22 additions and 23 deletions

View File

@ -1172,7 +1172,7 @@ const TimelinePanel = React.createClass({
// return the index of the first invisible event.
if (isInView && adjacentInvisibleEventCount !== 0) {
return i + adjacentInvisibleEventCount;
} else {
}
if (node && !isInView) {
// has node but not in view, so reset adjacent invisible events
adjacentInvisibleEventCount = 0;
@ -1201,7 +1201,6 @@ const TimelinePanel = React.createClass({
return i;
}
}
}
return null;
},