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

Remove a misplaced false from a condition in fixMetadata, in metadata.js, since it currently short circuits the entire condition #7881

Merged
merged 1 commit into from
Dec 7, 2016

Conversation

Snuffleupagus
Copy link
Collaborator

This looks to me like a simple oversight, which has existed ever since PR #1598 all the way back in 2012.

…adata.js`, since it currently short circuits the entire condition

This looks to me like a simple oversight, which has existed ever since PR 1598 all the way back in 2012.
@Snuffleupagus
Copy link
Collaborator Author

/botio unittest

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/e85c681c089ab6f/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2016

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/14a01da2bc45f27/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/e85c681c089ab6f/output.txt

Total script time: 1.90 mins

  • Unit Tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/14a01da2bc45f27/output.txt

Total script time: 2.67 mins

  • Unit Tests: Passed

@timvandermeij
Copy link
Contributor

/botio-linux preview

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/c9356eebd330b85/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/c9356eebd330b85/output.txt

Total script time: 2.16 mins

Published

@timvandermeij
Copy link
Contributor

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2016

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/b22d1629abc2901/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2016

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/cafe6b7542fe9d7/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2016

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/b22d1629abc2901/output.txt

Total script time: 26.31 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

pdfjsbot commented Dec 7, 2016

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/cafe6b7542fe9d7/output.txt

Total script time: 27.23 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@timvandermeij timvandermeij merged commit aaec490 into mozilla:master Dec 7, 2016
@timvandermeij
Copy link
Contributor

Good find!

@Snuffleupagus Snuffleupagus deleted the fixMetadata-constant-condition branch December 7, 2016 23:36
@Snuffleupagus
Copy link
Collaborator Author

Good find!

Well I didn't actually find this myself, it was found by the ESLint rule http://eslint.org/docs/rules/no-constant-condition. (I've, again, started looking into replacing JSHint with ESLint, since it's got a lot of benefits IMHO.)

@timvandermeij
Copy link
Contributor

Awesome! I really like the idea of using ESLint as it seems to have a lot more options and is more actively maintained/used. If you find more code (style) issues, feel free to assign me for review.

movsb pushed a commit to movsb/pdf.js that referenced this pull request Jul 14, 2018
…nt-condition

Remove a misplaced `false` from a condition in `fixMetadata`, in `metadata.js`, since it currently short circuits the entire condition
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