Skip to content

Commit 82746d1

Browse files
author
Bri@n
committed
Fix typo in DonationLinkHelper and rewrote swtich statement
1 parent 2f02c0e commit 82746d1

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/utils/DonationLinkHelper.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,14 @@ public enum AffiliateService {
1515
AMAZON,
1616
}
1717

18-
public static DonationService getDonatoinServiceByLink(String link) throws MalformedURLException {
18+
public static DonationService getDonationServiceByLink(String link) throws MalformedURLException {
1919
URL url = new URL(fixLink(link));
2020
switch (url.getHost()) {
2121
case "www.patreon.com":
22-
return DonationService.PATREON;
2322
case "patreon.com":
2423
return DonationService.PATREON;
25-
case "paypal.me":
26-
return DonationService.PAYPAL;
2724
case "www.paypal.me":
25+
case "paypal.me":
2826
return DonationService.PAYPAL;
2927
default:
3028
return DonationService.NO_DONATION;

0 commit comments

Comments
 (0)