From 39dcf835264613aea08e34454f01d182c5b37e29 Mon Sep 17 00:00:00 2001 From: Aaron Weisberg Date: Wed, 21 Aug 2024 11:17:23 -0700 Subject: [PATCH] remove comments --- src/main.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main.ts b/src/main.ts index 5376922..b184021 100644 --- a/src/main.ts +++ b/src/main.ts @@ -253,18 +253,11 @@ function partOfApp(changedFiles: string[], app: App): boolean { } function getFirstTwoDirectories(filePath: string): string { - // Normalize the path to handle any inconsistencies const normalizedPath = path.normalize(filePath); - - // Split the path into parts based on the OS-specific separator const parts = normalizedPath.split(path.sep).filter(Boolean); // filter(Boolean) removes empty strings - - // Check if the path has at least two segments if (parts.length < 2) { return parts.join(path.sep); // Return the entire path if less than two directories } - - // Join the first two segments return parts.slice(0, 2).join(path.sep); }