Skip to content

Commit 0d0ee0a

Browse files
committed
perf(setup): remove redundant path resolution
1 parent cff1ac6 commit 0d0ee0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/rstack/src/setup/install.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ export const installHooks = ({
124124
const files = Object.entries(createHookFiles());
125125
// Skip all writes only when the config, generated content, and executable modes match.
126126
const unchanged =
127-
path.resolve(cwd, configuredHooksPath) === path.resolve(directory) &&
127+
path.resolve(cwd, configuredHooksPath) === directory &&
128128
isCurrentFile(path.join(directory, '.gitignore'), gitignore) &&
129129
files.every(([name, content]) => isCurrentFile(path.join(directory, name), content, true));
130130

0 commit comments

Comments
 (0)