-
Notifications
You must be signed in to change notification settings - Fork 944
fix: remove fifo path if stdio is not initail #2302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove fifo path if stdio is not initail #2302
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2302 +/- ##
==========================================
+ Coverage 66.61% 67.95% +1.33%
==========================================
Files 211 217 +6
Lines 17195 19972 +2777
==========================================
+ Hits 11455 13572 +2117
- Misses 4337 4838 +501
- Partials 1403 1562 +159
|
|
@zhuangqh Thanks for your contribution. 🍻 |
|
Just for the logic, LGTM |
| // judge stdin is initial, make logic same with copyIO. | ||
| if i, ok := stdin.(*ContainerIO); (ok && i == nil) || (stdin == nil) { | ||
| paths.In = "" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just wonder if this code is need here, code not so good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ace-Tang What did you concern about? Maybe we should use reflect.ValueOf(stdin).IsNil() to check whether stdin is nil?
|
There is a mechanism to promise |
|
LGTM |
Ⅰ. Describe what this PR did
remove fifo path if stdio is not initail
Ⅱ. Does this pull request fix one issue?
NONE
Ⅲ. Why don't you add test cases (unit test/integration test)? (你真的觉得不需要加测试吗?)
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews