Skip to content

Use more optional chaining in the web/-folder (PR 12961 follow-up) #13063

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

Merged

Conversation

Snuffleupagus
Copy link
Collaborator

  • Avoid unnecessary size_kb calculation, for large files, in PDFDocumentProperties._parseFileSize (PR 13050 follow-up)

  • Use more optional chaining in the web/-folder (PR 12961 follow-up)

    I overlooked these cases previously, but there's no reason why optional chaining (and nullish coalescing) cannot be used here as well.

…mentProperties._parseFileSize` (PR 13050 follow-up)
I overlooked these cases previously, but there's no reason why optional chaining (and nullish coalescing) cannot be used here as well.
@Snuffleupagus
Copy link
Collaborator Author

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Mar 7, 2021

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/8d2f7659928829a/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 7, 2021

From: Bot.io (Linux m4)


Success

Full output at http://54.67.70.0:8877/8d2f7659928829a/output.txt

Total script time: 4.25 mins

Published

@timvandermeij timvandermeij merged commit 5e3af62 into mozilla:master Mar 7, 2021
@timvandermeij
Copy link
Contributor

Looks good!

@Snuffleupagus Snuffleupagus deleted the more-web-optional-chaining branch March 7, 2021 18:34
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