Skip to content

Return an empty record instead of an empty list in capture-foreign-env#1954

Merged
fdncred merged 1 commit into
nushell:mainfrom
meghprkh:patch-1
Jun 26, 2025
Merged

Return an empty record instead of an empty list in capture-foreign-env#1954
fdncred merged 1 commit into
nushell:mainfrom
meghprkh:patch-1

Conversation

@meghprkh
Copy link
Copy Markdown
Contributor

  • load-env happily accepts an empty record but not an empty list
  • A small workaround to return an empty record in that case, as anyway we aim to return a record

load-env happily accepts an empty record but not an empty list
@fdncred fdncred merged commit 62cb829 into nushell:main Jun 26, 2025
2 checks passed
@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Jun 26, 2025

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants