Skip to content

Commit

Permalink
remove criteria
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdan-rosianu committed Mar 29, 2024
1 parent e96141c commit 99975ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion action/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -188169,7 +188169,7 @@ const robot = (app) => {
return;
}
const tokensDirectories = (response.data && response.data.length) ? response.data : [];
const subdirectories = tokensDirectories.filter((content) => content?.type === "dir" && content?.name?.startsWith(`${tokenTicker}-`));
const subdirectories = tokensDirectories.filter((content) => content?.type === "dir");
console.log(subdirectories);
const subdirectoryNamesWithSameTicker = subdirectories.filter(subdirectory => subdirectory.name.startsWith(`${tokenTicker}-`));
if (subdirectoryNamesWithSameTicker.length) {
Expand Down
2 changes: 1 addition & 1 deletion src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export const robot = (app: Probot) => {
}
const tokensDirectories = (response.data && (response.data as any[]).length) ? response.data as any[] : [];
const subdirectories = tokensDirectories.filter(
(content) => content?.type === "dir" && content?.name?.startsWith(`${tokenTicker}-`),
(content) => content?.type === "dir",
);

console.log(subdirectories);
Expand Down

0 comments on commit 99975ca

Please sign in to comment.