From 23547880af37f9804841f180362632e415256c6c Mon Sep 17 00:00:00 2001 From: xiejiahe Date: Thu, 7 Mar 2024 16:47:10 +0800 Subject: [PATCH] style(utils): remove null check 1. The `existing` variable has undergone a null check on line 1075 2. The `value ` variable has undergone a null check on line 1069 --- packages/vite/src/node/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vite/src/node/utils.ts b/packages/vite/src/node/utils.ts index c6ef88a4cb72fc..7a682a6cfb3373 100644 --- a/packages/vite/src/node/utils.ts +++ b/packages/vite/src/node/utils.ts @@ -1100,7 +1100,7 @@ function mergeConfigRecursively( } if (Array.isArray(existing) || Array.isArray(value)) { - merged[key] = [...arraify(existing ?? []), ...arraify(value ?? [])] + merged[key] = [...arraify(existing), ...arraify(value)] continue } if (isObject(existing) && isObject(value)) {