Skip to content

Commit

Permalink
feat: shorten code
Browse files Browse the repository at this point in the history
  • Loading branch information
dylancom committed Dec 24, 2022
1 parent 1ec68a3 commit 0a7d4ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions RNGoogleMobileAdsExample/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,7 @@ class BannerTest implements Test {
}

getPath(): string {
if (this.path) {
return this.path;
}
return this.bannerAdSize;
return this.path || this.bannerAdSize;
}

getTestType(): TestType {
Expand Down

0 comments on commit 0a7d4ef

Please sign in to comment.