Skip to content

Commit 30afa89

Browse files
committed
style: format handleDeletedFiles function signature and whitespace
1 parent 49daf85 commit 30afa89

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

src/utils/gh-sync-utils/file-utils.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,12 @@ export function actionOnFile(
183183
* @param repo Repository name to check tracked files
184184
* @returns Array of file paths that were removed
185185
*/
186-
export async function handleDeletedFiles(sourceDir: string, localDir: string, cwd?: string, repo?: string): Promise<string[]> {
186+
export async function handleDeletedFiles(
187+
sourceDir: string,
188+
localDir: string,
189+
cwd?: string,
190+
repo?: string,
191+
): Promise<string[]> {
187192
const removedFiles: string[] = []
188193

189194
// Skip if local directory doesn't exist
@@ -236,10 +241,10 @@ export async function handleDeletedFiles(sourceDir: string, localDir: string, cw
236241
// If file exists in local but not in source, add to deletion list
237242
if (!sourceFiles.has(relativePath)) {
238243
const relativeToRoot = cwd ? relative(cwd, fullPath) : fullPath
239-
244+
240245
// Only consider tracked files if repo is provided
241-
const isTracked = !trackedFiles || trackedFiles.has(relativeToRoot);
242-
246+
const isTracked = !trackedFiles || trackedFiles.has(relativeToRoot)
247+
243248
if (isTracked) {
244249
filesToDelete.push({
245250
path: fullPath,

0 commit comments

Comments
 (0)