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 typo for worklet in globalscope #20905

Merged
merged 1 commit into from Jun 3, 2018
Merged

Fix typo for worklet in globalscope #20905

merged 1 commit into from Jun 3, 2018

Conversation

@CYBAI
Copy link
Collaborator

CYBAI commented Jun 3, 2018

As the self will downcast to WorkletGlobalScope, I think it would be more reasonable to name the variable with worklet in if let.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because it just renames the variable name

This change is Reviewable

@highfive
Copy link

highfive commented Jun 3, 2018

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/globalscope.rs
  • @fitzgen: components/script/dom/globalscope.rs
  • @KiChjang: components/script/dom/globalscope.rs
@highfive
Copy link

highfive commented Jun 3, 2018

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@jdm
Copy link
Member

jdm commented Jun 3, 2018

@bors-servo r+
Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented Jun 3, 2018

📌 Commit f2ad352 has been approved by jdm

@highfive highfive assigned jdm and unassigned nox Jun 3, 2018
@bors-servo
Copy link
Contributor

bors-servo commented Jun 3, 2018

Testing commit f2ad352 with merge d23bc4f...

bors-servo added a commit that referenced this pull request Jun 3, 2018
Fix typo for worklet in globalscope

As the `self` will downcast to `WorkletGlobalScope`, I think it would be more reasonable to name the variable with `worklet` in `if let`.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes do not require tests because it just renames the variable name

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/20905)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 3, 2018

💔 Test failed - mac-rel-wpt2

@jdm
Copy link
Member

jdm commented Jun 3, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jun 3, 2018

@bors-servo
Copy link
Contributor

bors-servo commented Jun 3, 2018

@bors-servo bors-servo merged commit f2ad352 into servo:master Jun 3, 2018
3 of 4 checks passed
3 of 4 checks passed
Taskcluster (pull_request) TaskGroup: Exception
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
homu Test successful
Details
@CYBAI CYBAI deleted the CYBAI:fix-typo branch Jun 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

5 participants
You can’t perform that action at this time.