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