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:
parent
46527b72d7
commit
f7ede145b4
3 changed files with 47 additions and 48 deletions
|
@ -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 {};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue