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

Update the FontLoader.bind method to avoid explicitly returning undefined #11673

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

The only reason for the return undefined; lines was to appease the ESLint consistent-return rule, but that's not actually necessary if you make use of the fact that the method is async and that we can thus await the Promise rather than returning it.

…defined`

The only reason for the `return undefined;` lines was to appease the ESLint `consistent-return` rule, but that's not actually necessary if you make use of the fact that the method is `async` and that we can thus await the Promise rather than returning it.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Mar 6, 2020

From: Bot.io (Linux m4)


Received

Command cmd_preview from @Snuffleupagus received. Current queue size: 0

Live output at: http://54.67.70.0:8877/7dfefecc523f2d0/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 6, 2020

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/7dfefecc523f2d0/output.txt

Total script time: 2.42 mins

Published

@timvandermeij timvandermeij merged commit 1bb25f5 into mozilla:master Mar 6, 2020
@timvandermeij
Copy link
Contributor

Nice find!

@Snuffleupagus Snuffleupagus deleted the FontLoader-bind-more-await branch March 6, 2020 23:36
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.

3 participants