Skip to content

Commit 802a295

Browse files
committed
refactor: remove unnecessary exports from skillFileUtils
resolveSkillFilePath and lstatIfExists are only used within skillFileUtils.ts itself. Remove the export keyword to narrow their visibility to file-internal, making the module's public API surface clearer.
1 parent f62a97b commit 802a295

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/node/services/tools/skillFileUtils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function isAbsolutePathAny(filePath: string): boolean {
2727
return /^[A-Za-z]:[\\/]/.test(filePath);
2828
}
2929

30-
export function resolveSkillFilePath(
30+
function resolveSkillFilePath(
3131
skillDir: string,
3232
filePath: string
3333
): {
@@ -63,7 +63,7 @@ export function resolveSkillFilePath(
6363
};
6464
}
6565

66-
export async function lstatIfExists(targetPath: string): Promise<Stats | null> {
66+
async function lstatIfExists(targetPath: string): Promise<Stats | null> {
6767
try {
6868
return await fsPromises.lstat(targetPath);
6969
} catch (error) {

0 commit comments

Comments
 (0)