Skip to content

Commit

Permalink
chore: update return statement based on code review
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Oct 27, 2022
1 parent c9485bf commit c5a77d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/utils.ts
Expand Up @@ -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)
Expand Down

0 comments on commit c5a77d8

Please sign in to comment.