diff --git a/src/shell.rs b/src/shell.rs index 4222f962719..358b4e6df71 100644 --- a/src/shell.rs +++ b/src/shell.rs @@ -86,11 +86,7 @@ fn shell_exec( continuing_block } // && p.location.is_some() ParseErrorType::OtherError(msg) => { - if msg.starts_with("Expected an indented block") { - continuing_block - } else { - true - } + !msg.starts_with("Expected an indented block") } _ => true, // !matches!(p, ParseErrorType::UnrecognizedToken(Tok::Dedent, _)) }