mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Remove unnecessary empty check in getCues(..)
This commit is contained in:
parent
7a6de79f91
commit
925a7fd045
1 changed files with 2 additions and 2 deletions
|
|
@ -61,8 +61,8 @@ import java.util.List;
|
|||
@Override
|
||||
public List<Cue> getCues(long timeUs) {
|
||||
int index = Util.binarySearchFloor(cueTimesUs, timeUs, true, false);
|
||||
if (index == -1 || cues.get(index).isEmpty()) {
|
||||
// timeUs is earlier than the start of the first cue, or we have an empty cue.
|
||||
if (index == -1) {
|
||||
// timeUs is earlier than the start of the first cue.
|
||||
return Collections.emptyList();
|
||||
} else {
|
||||
return cues.get(index);
|
||||
|
|
|
|||
Loading…
Reference in a new issue