Skip to content

Commit

Permalink
minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jun 12, 2024
1 parent 8129c78 commit 59fee54
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,12 +150,12 @@ function removeIgnoredDirectories(somePath: string, ignoredDirs: string[], remov
return somePath
}
function assertRedundantParentheses(dir: string, ignoredDirs: string[], somePath: string) {
const dirname = dir.slice(1, -1)
if (!ignoredDirs.includes(dirname)) {
const dirWithoutParentheses = dir.slice(1, -1)
if (!ignoredDirs.includes(dirWithoutParentheses)) {
return
}
const dirnameActual = dir
const dirnameCorect = dirname
const dirnameCorect = dirWithoutParentheses
const dirpathActual = somePath.slice(0, somePath.indexOf(dirnameActual) + dirnameActual.length)
const dirpathCorect = dirpathActual.replaceAll(dirnameActual, dirnameCorect)
const logDir = (d: string) => pc.bold(d + '/')
Expand Down

0 comments on commit 59fee54

Please sign in to comment.