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

Use more optional chaining in the code-base #15398

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

Snuffleupagus
Copy link
Collaborator

This patch updates a bunch of older code, that makes conditional function calls, to use optional chaining rather than if-blocks.

These mostly mechanical changes reduce the size of the gulp mozcentral build by a little over 1 kB.

This patch updates a bunch of older code, that makes conditional function calls, to use optional chaining rather than `if`-blocks.

These mostly mechanical changes reduce the size of the `gulp mozcentral` build by a little over 1 kB.
@Snuffleupagus
Copy link
Collaborator Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Sep 5, 2022

From: Bot.io (Linux m4)


Received

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

Live output at: http://54.241.84.105:8877/ad8e0ee8bedaa1c/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 5, 2022

From: Bot.io (Windows)


Received

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

Live output at: http://54.193.163.58:8877/93eaf4792b2c63b/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Sep 5, 2022

From: Bot.io (Linux m4)


Failed

Full output at http://54.241.84.105:8877/ad8e0ee8bedaa1c/output.txt

Total script time: 26.02 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: Passed
  • Regression tests: FAILED
  different ref/snapshot: 9
  different first/second rendering: 1

Image differences available at: http://54.241.84.105:8877/ad8e0ee8bedaa1c/reftest-analyzer.html#web=eq.log

@pdfjsbot
Copy link

pdfjsbot commented Sep 5, 2022

From: Bot.io (Windows)


Failed

Full output at http://54.193.163.58:8877/93eaf4792b2c63b/output.txt

Total script time: 28.90 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Integration Tests: FAILED
  • Regression tests: Passed

Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

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

Thank you.

@Snuffleupagus Snuffleupagus merged commit af6aacf into mozilla:master Sep 6, 2022
@Snuffleupagus Snuffleupagus deleted the more-optional-chaining branch September 6, 2022 18:31
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