Apply suggestions from code review

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
Nyanmisaka 2020-11-20 23:43:55 +00:00 committed by GitHub
parent d3ee7b68fb
commit ea8a2d5549
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -442,9 +442,7 @@ import 'emby-input';
position = (position / runtime) * 100; position = (position / runtime) * 100;
} }
for (let i = 0, length = ranges.length; i < length; i++) { for (const range of ranges) {
const range = ranges[i];
if (position != null) { if (position != null) {
if (position >= range.end) { if (position >= range.end) {
continue; continue;