Skip to content

Commit d9a8dd5

Browse files
authored
chore(cli): remove unused hooks directory setter (#2647)
`setStoredHooksDir` had no callers and duplicated the directory write handled by `setStoredHooksLocation`
1 parent b1c41b2 commit d9a8dd5

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

packages/cli/src/config/hooks.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,6 @@ export function getStoredHooksDir(): string | null {
263263
return gitConfigGet(PREFERENCE_DIR_KEY, { local: true });
264264
}
265265

266-
export function setStoredHooksDir(dir: string): { ok: boolean; error?: string } {
267-
return gitConfigSet(PREFERENCE_DIR_KEY, dir);
268-
}
269-
270266
function getStoredHooksPrefix(): string | null {
271267
const value = gitConfigGet(PREFERENCE_PREFIX_KEY, { local: true });
272268
if (value == null) {

0 commit comments

Comments
 (0)