Skip to content

Commit

Permalink
chore: fix autos
Browse files Browse the repository at this point in the history
  • Loading branch information
seia-soto committed Aug 7, 2024
1 parent 453e9d8 commit 85fac0a
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/converters/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ export function generateResourcesMapping() {
];

function getPreferredResource(aliases) {
// ignore non-supported files and manually created uBO aliases by AdGuard
return aliases.find(alias => {
const extension = alias.split('.').pop();
return allowedResourceExtensions.includes(extension) && !alias.startsWith('ubo-');
});
// ignore non-supported files and manually created uBO aliases by AdGuard
return aliases.find(alias => {
const extension = alias.split('.').pop();
return allowedResourceExtensions.includes(extension) && !alias.startsWith('ubo-');
});
}

for (const redirect of redirects) {
// Skip, in case of AdGuard-only resource
Expand All @@ -31,7 +32,7 @@ return aliases.find(alias => {
const preferredResourceName = getPreferredResource(redirect.aliases);

// Skip, in case of safe redirect resource name that's safe to use wasn't found
if (preferredResourceName === null) {
if (preferredResourceName === undefined) {
continue;
}

Expand Down

0 comments on commit 85fac0a

Please sign in to comment.