Auto merge of #22490 - cdeler:fix-22484-issue, r=ferjm

#22484 small cleanup

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #22484 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [X] These changes do not require tests because it's a small code cleanup

<!-- 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/22490)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2018-12-23 05:24:33 -05:00 committed by GitHub
commit 27bb33cb9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1313,7 +1313,7 @@ impl HTMLImageElement {
pub fn same_origin(&self, origin: &MutableOrigin) -> bool {
self.current_request
.borrow_mut()
.borrow()
.final_url
.as_ref()
.map_or(false, |url| {