1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

Shell: Run clang-format on everything.

This commit is contained in:
Andreas Kling 2019-06-07 11:49:21 +02:00
parent 46527b72d7
commit f7ede145b4
3 changed files with 47 additions and 48 deletions

View file

@ -52,7 +52,7 @@ Vector<Subcommand> Parser::parse()
commit_token();
if (m_tokens.is_empty()) {
fprintf(stderr, "Syntax error: Nothing before pipe (|)\n");
return { };
return {};
}
do_pipe();
break;
@ -110,7 +110,7 @@ Vector<Subcommand> Parser::parse()
commit_token();
if (m_tokens.is_empty()) {
fprintf(stderr, "Syntax error: Nothing before pipe (|)\n");
return { };
return {};
}
do_pipe();
m_state = State::Free;
@ -145,7 +145,7 @@ Vector<Subcommand> Parser::parse()
for (auto& redirection : m_subcommands.last().redirections) {
if (redirection.type == Redirection::Pipe) {
fprintf(stderr, "Syntax error: Nothing after last pipe (|)\n");
return { };
return {};
}
}
}