Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TS errors #2306

Merged
merged 1 commit into from
Jul 25, 2019
Merged

Fix TS errors #2306

merged 1 commit into from
Jul 25, 2019

Conversation

johnBartos
Copy link
Collaborator

This PR will...

  • Guard against null initData, and add new error details for missing init data
  • Apply the non-null operator to this.cueStartTime
    • I don't know the side effects of defaulting this value, so I think this is the best option given the limited scope of the PR

Why is this Pull Request needed?

So that our build passes without TS errors

Are there any points in the code the reviewer needs to double check?

Sure

Resolves issues:

N/A

Checklist

  • changes have been done against master branch, and PR does not conflict
  • new unit / functional tests have been added (whenever applicable)
  • API or design changes are documented in API.md

Copy link
Collaborator

@itsjamie itsjamie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@@ -305,6 +305,17 @@ class EMEController extends EventHandler {
return;
}

// initData is null if the media is not CORS-same-origin
if (!initData) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn’t this be caught higher up?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It could be, but it made sense to lump this handler along with all of the others

@johnBartos johnBartos merged commit 5d3b2e7 into master Jul 25, 2019
@johnBartos johnBartos modified the milestones: 0.12.5, 0.13.0 Aug 13, 2019
@itsjamie itsjamie deleted the bugfix/type-errors branch April 12, 2020 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants