Skip to content

Commit 8b611f7

Browse files
Bashamegasaschanaz
andauthored
Update src/build/patches.ts
Co-authored-by: Kagami Sascha Rosylight <[email protected]>
1 parent 743c7a3 commit 8b611f7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/build/patches.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,8 @@ export async function readPatch(fileUrl: URL): Promise<any> {
378378
function removeNamesDeep(obj: unknown): unknown {
379379
if (Array.isArray(obj)) {
380380
return obj.map(removeNamesDeep);
381-
} else if (obj && typeof obj === "object") {
381+
}
382+
if (obj && typeof obj === "object") {
382383
const newObj: { [key: string]: unknown } = {};
383384
for (const [key, value] of Object.entries(obj as Record<string, unknown>)) {
384385
if (key !== "name") {

0 commit comments

Comments
 (0)