From 3323d2d0c0aa94072c924783d23de49dae84ec64 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Sun, 31 Mar 2024 12:51:54 +0100 Subject: [PATCH] fix: never return the complete file list --- src/Repository.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Repository.ts b/src/Repository.ts index 7f185f7..99346bf 100644 --- a/src/Repository.ts +++ b/src/Repository.ts @@ -99,7 +99,6 @@ export default class Repository { } ): Promise { const terms = this._model.options.terms || []; - if (terms.length === 0) return this.files(opt); return anonymizeTreeRecursive(await this.files(opt), terms, opt) as Tree; }