Skip to content

Commit 5184d40

Browse files
Bashamegasaschanaz
andauthored
Update src/build/patches.ts
Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
1 parent 8b611f7 commit 5184d40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/build/patches.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ export async function readPatch(fileUrl: URL): Promise<any> {
375375
return parseKDL(text);
376376
}
377377

378+
/**
379+
* Remove all name fields from the object and its children as we don't want
380+
* the names to be part of the removal.
381+
*/
378382
function removeNamesDeep(obj: unknown): unknown {
379383
if (Array.isArray(obj)) {
380384
return obj.map(removeNamesDeep);

0 commit comments

Comments
 (0)