mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Remove an unnecessary fetch of the principal parser
This commit is contained in:
parent
fbd4ff027a
commit
acd33cbabb
1 changed files with 0 additions and 1 deletions
|
@ -1152,7 +1152,6 @@ static int exec_subshell_internal(const wcstring &cmd, parser_t &parser, wcstrin
|
|||
size_t read_limit = is_subcmd ? read_byte_limit : 0;
|
||||
std::shared_ptr<io_buffer_t> buffer;
|
||||
if (auto bufferfill = io_bufferfill_t::create(io_chain_t{}, read_limit)) {
|
||||
parser_t &parser = parser_t::principal_parser();
|
||||
if (parser.eval(cmd, io_chain_t{bufferfill}, SUBST) == 0) {
|
||||
subcommand_statuses = proc_get_last_statuses();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue