Fix typo in AffiliateService: rename "NO_AFILIATE" to "NO_AFFILIATE"
This commit is contained in:
parent
865c42e273
commit
942d840624
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ public class DonationLinkHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum AffiliateService {
|
public enum AffiliateService {
|
||||||
NO_AFILIATE,
|
NO_AFFILIATE,
|
||||||
AMAZON,
|
AMAZON,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ public class DonationLinkHelper {
|
||||||
URL url = new URL(fixLink(link));
|
URL url = new URL(fixLink(link));
|
||||||
switch (url.getHost()) {
|
switch (url.getHost()) {
|
||||||
case "amzn.to": return AffiliateService.AMAZON;
|
case "amzn.to": return AffiliateService.AMAZON;
|
||||||
default: return AffiliateService.NO_AFILIATE;
|
default: return AffiliateService.NO_AFFILIATE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue