mirror of
https://github.com/tdurieux/anonymous_github.git
synced 2026-07-06 13:47:59 +02:00
fix: never return the complete file list
This commit is contained in:
@@ -99,7 +99,6 @@ export default class Repository {
|
|||||||
}
|
}
|
||||||
): Promise<Tree> {
|
): Promise<Tree> {
|
||||||
const terms = this._model.options.terms || [];
|
const terms = this._model.options.terms || [];
|
||||||
if (terms.length === 0) return this.files(opt);
|
|
||||||
return anonymizeTreeRecursive(await this.files(opt), terms, opt) as Tree;
|
return anonymizeTreeRecursive(await this.files(opt), terms, opt) as Tree;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user