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

♻️Refactor amp-ad-network-adsense-impl to move logic related to rive to a separate helper class #24759

Merged
merged 1 commit into from Sep 27, 2019

Conversation

riklund
Copy link
Contributor

@riklund riklund commented Sep 26, 2019

No description provided.

@riklund riklund marked this pull request as ready for review September 26, 2019 16:08
@riklund
Copy link
Contributor Author

riklund commented Sep 26, 2019

@riklund riklund force-pushed the cleanup-1 branch 3 times, most recently from f6dbef8 to ee1954e Compare September 26, 2019 20:02
Copy link
Contributor

@lannka lannka left a comment

Choose a reason for hiding this comment

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

Good refactoring! Some cosmetic comments.

'responsive-state',
{
amp: {
extensions: ['amp-ad', 'amp-ad-network-adsense-impl'],
Copy link
Contributor

Choose a reason for hiding this comment

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

i guess you don't need those extensions in this unit test.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

return (
!!this.element.getAttribute('data-ad-client') && this.isAmpAdElement()
(this.responsiveState_ == null ||
Copy link
Contributor

Choose a reason for hiding this comment

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

one level of if-else might make the code a bit easier to read here

@lannka lannka merged commit 0e3ba80 into ampproject:master Sep 27, 2019
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.

None yet

3 participants