mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 17:06:59 +08:00
Eliminate a common subexpression
This commit is contained in:
parent
e6737d5775
commit
2443ea92c3
|
@ -893,8 +893,7 @@ void exec_job(parser_t &parser, job_t *j) {
|
||||||
|
|
||||||
const char *buffer = block_output_io_buffer->out_buffer_ptr();
|
const char *buffer = block_output_io_buffer->out_buffer_ptr();
|
||||||
size_t count = block_output_io_buffer->out_buffer_size();
|
size_t count = block_output_io_buffer->out_buffer_size();
|
||||||
|
if (count > 0) {
|
||||||
if (block_output_io_buffer->out_buffer_size() > 0) {
|
|
||||||
// We don't have to drain threads here because our child process is simple.
|
// We don't have to drain threads here because our child process is simple.
|
||||||
const char *fork_reason = p->type == INTERNAL_BLOCK_NODE ? "internal block io" : "internal function io";
|
const char *fork_reason = p->type == INTERNAL_BLOCK_NODE ? "internal block io" : "internal function io";
|
||||||
if (!do_fork(false, fork_reason, [&] {
|
if (!do_fork(false, fork_reason, [&] {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user