Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielc-n committed Oct 21, 2024
1 parent 510fa45 commit dc33f5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const TranslationHelps = ({
const pathToIngredients = path.resolve(resourceDirPath, offlineResource.data.projectDir, 'ingredients');
if (pathToIngredients) {
const pathRelationFile = path.resolve(pathToIngredients, 'relation.txt');

if (fs.existsSync(pathRelationFile)) {
setImagesPath(pathToIngredients);
const relationFileContent = fs.readFileSync(pathRelationFile, 'utf8');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ export default function TranslationHelpsCard({
// }
// return [];
// })[0];
for (let [key, value] of asArray) {
// eslint-disable-next-line
for (const [key, value] of asArray) {
if (key.toLocaleLowerCase().indexOf(projectId.toLowerCase()) !== -1) {
currentFile = key;
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const fetchTranslationResource = async (urlpath, setResource, selectResou
if (selectResource === 'tn') {
filteredRepos = fetchedJson.filter((repo) => repo.topics.includes('burrito' && 'bcvnotes'));
} else if (selectResource === 'tir') {
filteredRepos = fetchedJson.filter((repo) => repo.topics.includes('burrito' && 'imagedict') || repo.topics.includes('burrito' && 'videolinks') );
filteredRepos = fetchedJson.filter((repo) => repo.topics.includes('burrito' && 'imagedict') || repo.topics.includes('burrito' && 'videolinks'));
filteredReposResourcelinks = fetchedJson.filter((repo) => repo.topics.includes('burrito' && 'resourcelinks'));
}

Expand Down

0 comments on commit dc33f5f

Please sign in to comment.