mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-07-03 10:01:16 -03:00
lint cleanup: eliminate "redundant" errors
This removes some pointless parentheses but the primary focus is removing redundancies like unnecessary "else" clauses.
This commit is contained in:
@@ -670,9 +670,8 @@ int parser_t::eval_block_node(node_offset_t node_idx, const io_chain_t &io,
|
||||
if (this->cancellation_requested) {
|
||||
if (!block_stack.empty()) {
|
||||
return 1;
|
||||
} else {
|
||||
this->cancellation_requested = false;
|
||||
}
|
||||
this->cancellation_requested = false;
|
||||
}
|
||||
|
||||
// Only certain blocks are allowed.
|
||||
|
||||
Reference in New Issue
Block a user