Skip to content

refactor: use pre-defined environments variable to avoid duplicate Object.values calls - #22790

Merged
sapphi-red merged 1 commit into
vitejs:mainfrom
btea:refactor/use-environments-variable
Jun 30, 2026
Merged

refactor: use pre-defined environments variable to avoid duplicate Object.values calls#22790
sapphi-red merged 1 commit into
vitejs:mainfrom
btea:refactor/use-environments-variable

Conversation

@btea

@btea btea commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

The result of Object.values(server.environments) has already been stored in the variable environments, and this variable can be reused directly within the same scope.

@sapphi-red sapphi-red added the p1-chore Doesn't change code behavior (priority) label Jun 30, 2026
@sapphi-red sapphi-red changed the title refactor: use pre-defined environments variable to avoid duplicate Object.values calls refactor: use pre-defined environments variable to avoid duplicate Object.values calls Jun 30, 2026
@sapphi-red
sapphi-red merged commit 1113acf into vitejs:main Jun 30, 2026
20 checks passed