Skip to content

pass: simplify some code#109

Merged
vdemeester merged 1 commit intodocker:masterfrom
euank:better-exec
Jun 27, 2018
Merged

pass: simplify some code#109
vdemeester merged 1 commit intodocker:masterfrom
euank:better-exec

Conversation

@euank
Copy link
Copy Markdown
Contributor

@euank euank commented Jun 21, 2018

The exec.Command code and os.Getenv implementation were both needlessly
verbose. This replaces them with simpler variations.

Note, this will conflict with #108, I'd rather that go in first and me rebase this on that.

Copy link
Copy Markdown
Collaborator

@vdemeester vdemeester left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM 🐸
cc @n4ss

Copy link
Copy Markdown
Contributor

@n4ss n4ss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! gj!

Comment thread pass/pass_linux.go
err := cmd.Run()
if err != nil {
return "", err
return "", fmt.Errorf("%s: %s", err, stderr.String())
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

The exec.Command code and os.Getenv implementation were both needlessly
verbose. This replaces them with simpler variations.

Signed-off-by: Euan Kemp <[email protected]>
@vdemeester
Copy link
Copy Markdown
Collaborator

Rebased against master to get CI green 👼

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.

3 participants