Skip to content
This repository has been archived by the owner on May 30, 2024. It is now read-only.

Add early return when shadowenv returns an empty string #735

Merged
merged 3 commits into from
Aug 8, 2023
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/ruby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@
cwd: this.workingFolder,
});

if (result.stdout === "") {
bitwise-aiden marked this conversation as resolved.
Show resolved Hide resolved
// eslint-disable-next-line no-process-env
this._env = { ...process.env };
return;
};

Check failure on line 129 in src/ruby.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`

Check failure on line 129 in src/ruby.ts

View workflow job for this annotation

GitHub Actions / build

Delete `;`
bitwise-aiden marked this conversation as resolved.
Show resolved Hide resolved
// eslint-disable-next-line no-process-env
const env = { ...process.env, ...JSON.parse(result.stdout).exported };

Expand Down
Loading