mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
lint
This commit is contained in:
parent
a5465ebde3
commit
0e272d31c4
@ -147,7 +147,7 @@ const loadAds = async (): Promise<void> => {
|
|||||||
try {
|
try {
|
||||||
console.log('loading', provider.value);
|
console.log('loading', provider.value);
|
||||||
const key = provider.value as keyof typeof loadAdsForProvider;
|
const key = provider.value as keyof typeof loadAdsForProvider;
|
||||||
if (!loadAdsForProvider.hasOwnProperty(key)) {
|
if (!Object.hasOwn(loadAdsForProvider, key)) {
|
||||||
throw new Error(`Invalid provider: ${key}`);
|
throw new Error(`Invalid provider: ${key}`);
|
||||||
}
|
}
|
||||||
await loadAdsForProvider[key]();
|
await loadAdsForProvider[key]();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user