laravel / vite-plugin

Laravel plugin for Vite.
MIT License
804 stars 152 forks source link

[1.x] Simpler conditional #273

Closed Jubeki closed 10 months ago

Jubeki commented 10 months ago

userConfig.server?.https can either be undefined or be a user-defined object.

Currently there is an unnecessary conditional, because in the first ternary condition it is already checked if this configuration is undefined or not, therefor making the second ternary condition unnecessary. This PR solves this issue.