Skip to content

Commit

Permalink
fix: Wrap case statements (#1821)
Browse files Browse the repository at this point in the history
  • Loading branch information
bukinoshita authored Dec 19, 2024
1 parent 2bc2ca4 commit a70ffa7
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export const createDependencyGraph = async (directory: string) => {
await updateModuleDependenciesInGraph(pathToModified);
}
break;
case 'addDir':
case 'addDir': {
const filesInsideAddedDirectory =
await readAllFilesInsideDirectory(pathToModified);
const modulesInsideAddedDirectory =
Expand All @@ -281,12 +281,13 @@ export const createDependencyGraph = async (directory: string) => {
await updateModuleDependenciesInGraph(filePath);
}
break;
}
case 'unlink':
if (isJavascriptModule(pathToModified)) {
removeModuleFromGraph(pathToModified);
}
break;
case 'unlinkDir':
case 'unlinkDir': {
const filesInsideDeletedDirectory =
await readAllFilesInsideDirectory(pathToModified);
const modulesInsideDeletedDirectory =
Expand All @@ -295,6 +296,7 @@ export const createDependencyGraph = async (directory: string) => {
removeModuleFromGraph(filePath);
}
break;
}
}
},
{
Expand Down

0 comments on commit a70ffa7

Please sign in to comment.