Skip to content

Commit

Permalink
Null check the bottom bound in time pose buffer
Browse files Browse the repository at this point in the history
We don't need to check that the top bound is non-null on L61 b/c we already know from L60 that its non-null
  • Loading branch information
mcm001 committed Jul 23, 2020
1 parent 13fc50f commit 982a6ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class TimePoseInterpolatableBuffer(
val bottomBound = bufferMap.floorEntry(time)

return when {
topBound == null -> bottomBound.value
topBound == null -> bottomBound?.value
bottomBound == null -> topBound.value
else -> bottomBound.value.interpolate(
topBound.value,
Expand Down

0 comments on commit 982a6ea

Please sign in to comment.