From f2858801350077305a92a6ba32659a46dd3e1e39 Mon Sep 17 00:00:00 2001 From: Thodoris Greasidis Date: Tue, 14 Dec 2021 00:29:15 +0200 Subject: [PATCH] Drop unnecessary directory list created during balena deploy & push Change-type: patch Signed-off-by: Thodoris Greasidis --- lib/utils/ignore.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/utils/ignore.ts b/lib/utils/ignore.ts index 97950602..1a9437e7 100644 --- a/lib/utils/ignore.ts +++ b/lib/utils/ignore.ts @@ -206,9 +206,7 @@ export interface FileStats { * @param projectDir Source directory (root of subtree to be listed) */ async function listFiles(projectDir: string): Promise { - const dirs: string[] = []; const files: string[] = []; - dirs.push(projectDir); async function walk(currentDirs: string[]): Promise { if (!currentDirs.length) { return files; @@ -229,7 +227,6 @@ async function listFiles(projectDir: string): Promise { const fpath = path.join(dir, entry.name); if (entry.isDirectory()) { foundDirs.push(fpath); - dirs.push(fpath); } else { files.push(fpath); }