Skip to content

Commit fa737fc

Browse files
dont need this
1 parent 95ad656 commit fa737fc

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/lib/helpers.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,6 @@ export const getRootPath = () => {
1010
return workspaceFolders[0].uri.fsPath;
1111
};
1212

13-
export const withProjectAsCwd = <T>(fn: () => T): T => {
14-
const rootPath = getRootPath();
15-
if (!rootPath) {
16-
return fn();
17-
}
18-
19-
const originalCwd = process.cwd();
20-
try {
21-
process.chdir(rootPath);
22-
return fn();
23-
} finally {
24-
process.chdir(originalCwd);
25-
}
26-
};
27-
2813
export const getDayJsHasDatePassed = (date: string): boolean => {
2914
return dayjs().isAfter(date);
3015
};

0 commit comments

Comments
 (0)