Skip to content

Commit

Permalink
fix: ternary
Browse files Browse the repository at this point in the history
  • Loading branch information
adrums86 committed Oct 15, 2024
1 parent 07e5874 commit d7b4b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vtt-segment-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export default class VTTSegmentLoader extends SegmentLoader {
const key = keyValString[0];
const value = keyValString[1];

Check warning on line 412 in src/vtt-segment-loader.js

View check run for this annotation

Codecov / codecov/patch

src/vtt-segment-loader.js#L408-L412

Added lines #L408 - L412 were not covered by tests

vttCue[key] = Number.isNaN(value) ? Number(value) : value;
vttCue[key] = Number.isNaN(value) ? value : Number(value);

Check warning on line 414 in src/vtt-segment-loader.js

View check run for this annotation

Codecov / codecov/patch

src/vtt-segment-loader.js#L414

Added line #L414 was not covered by tests
});
}
segmentInfo.cues.push(vttCue);

Check warning on line 417 in src/vtt-segment-loader.js

View check run for this annotation

Codecov / codecov/patch

src/vtt-segment-loader.js#L417

Added line #L417 was not covered by tests
Expand Down

0 comments on commit d7b4b97

Please sign in to comment.