Skip to content

Commit

Permalink
fix: file extension check
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-cristino committed Oct 22, 2024
1 parent ec95a95 commit b509838
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ Dir.ready(async () => {
secondExt = pathArray.pop() as string;
let event: Events;
if (
ext === FILE_EXTENSIONS.contract ||
FILE_EXTENSIONS.contract.includes(ext) ||
(ext === FILE_EXTENSIONS.js && FILE_EXTENSIONS.chain.includes(secondExt))
) {
event = Events.Add;
Expand All @@ -264,7 +264,7 @@ Dir.ready(async () => {
let endpoint: Endpoints | undefined;
let event: Events;
if (
ext === FILE_EXTENSIONS.contract ||
FILE_EXTENSIONS.contract.includes(ext) ||
(ext === FILE_EXTENSIONS.js && FILE_EXTENSIONS.chain.includes(secondExt))
) {
endpoint = {
Expand Down

0 comments on commit b509838

Please sign in to comment.