fix: never return the complete file list

This commit is contained in:
tdurieux
2024-03-31 12:51:54 +01:00
parent e1ef44bd6d
commit 3323d2d0c0

View File

@@ -99,7 +99,6 @@ export default class Repository {
}
): Promise<Tree> {
const terms = this._model.options.terms || [];
if (terms.length === 0) return this.files(opt);
return anonymizeTreeRecursive(await this.files(opt), terms, opt) as Tree;
}