From c5a77d86fc1c519883b99edd600f2e7f6bc86b24 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Thu, 27 Oct 2022 08:07:15 -0700 Subject: [PATCH] chore: update return statement based on code review --- 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 95b165ce0e8b73..e4a376ab7c7080 100644 --- a/packages/vite/src/node/utils.ts +++ b/packages/vite/src/node/utils.ts @@ -1197,7 +1197,7 @@ export const isNonDriveRelativeAbsolutePath = (p: string): boolean => { export function joinUrlSegments(a: string, b: string): string { if (!a || !b) { - return a + b + return a || b || '' } if (a.endsWith('/')) { a = a.substring(0, a.length - 1)