Skip to content

Commit

Permalink
Fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Jan 22, 2025
1 parent a0911ab commit e33a633
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ async function getDirectoryHash(path: string | URL, options: Required<FSGetHashO
isSymlinkFile,
pathAbsolute
} of await walk(path)) {
if (bin.has(pathAbsolute)) {
throw new ReferenceError(`Path \`${pathAbsolute}\` process again, last result is \`${bin.get(pathAbsolute)}\`!`);
}
if (isDirectory) {
bin.set(pathAbsolute, "-".repeat(Math.round(size / 4)));
} else if (isFile) {
Expand Down Expand Up @@ -79,9 +76,6 @@ function getDirectoryHashSync(path: string | URL, options: Required<FSGetHashOpt
isSymlinkFile,
pathAbsolute
} of walkSync(path)) {
if (bin.has(pathAbsolute)) {
throw new ReferenceError(`Path \`${pathAbsolute}\` process again, last result is \`${bin.get(pathAbsolute)}\`!`);
}
if (isDirectory) {
bin.set(pathAbsolute, "-".repeat(Math.round(size / 4)));
} else if (isFile) {
Expand Down

0 comments on commit e33a633

Please sign in to comment.