Skip to content

Commit

Permalink
fix: Do not show undefined if an env value is missing from mise env j…
Browse files Browse the repository at this point in the history
…son output
  • Loading branch information
hverlin committed Jan 16, 2025
1 parent cc6230d commit a6e3be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/miseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ export class MiseService {
const parsed = JSON.parse(stdout) as Record<string, MiseEnvWithInfo>;
return Object.entries(parsed).map(([key, info]) => ({
name: key,
value: info.value,
value: info.value ?? "",
tool: info?.tool,
source: info?.source ? expandPath(info.source) : undefined,
}));
Expand Down

0 comments on commit a6e3be2

Please sign in to comment.