Skip to content

client: remove some indirection and touch-up GoDoc#342

Merged
thaJeztah merged 1 commit intodocker:masterfrom
thaJeztah:less_indirection
Oct 28, 2024
Merged

client: remove some indirection and touch-up GoDoc#342
thaJeztah merged 1 commit intodocker:masterfrom
thaJeztah:less_indirection

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

Both NewShellProgramFunc and NewShellProgramFuncWithEnv were using createProgramCmdRedirectErr under the hood, but NewShellProgramFunc had an extra indirection through NewShellProgramFuncWithEnv.

Make both a direct wrapper for createProgramCmdRedirectErr instead.

Both NewShellProgramFunc and NewShellProgramFuncWithEnv were using
createProgramCmdRedirectErr under the hood, but NewShellProgramFunc
had an extra indirection through NewShellProgramFuncWithEnv.

Make both a direct wrapper for createProgramCmdRedirectErr instead.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Oct 25, 2024

Codecov Report

Attention: Patch coverage is 0% with 11 lines in your changes missing coverage. Please review.

Project coverage is 53.26%. Comparing base (fa991bc) to head (ad253f5).
Report is 31 commits behind head on master.

Files with missing lines Patch % Lines
client/command.go 0.00% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #342      +/-   ##
==========================================
- Coverage   53.42%   53.26%   -0.16%     
==========================================
  Files           9        9              
  Lines         672      674       +2     
==========================================
  Hits          359      359              
- Misses        268      270       +2     
  Partials       45       45              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thaJeztah thaJeztah merged commit 7e7c557 into docker:master Oct 28, 2024
@thaJeztah thaJeztah deleted the less_indirection branch October 28, 2024 09:43
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