Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
Summary: Code broke due to land race :(

Differential Revision: D67658097

fbshipit-source-id: 7639787c33f37dbe6af6190b0927ecfcadb557b3
  • Loading branch information
praihan authored and facebook-github-bot committed Dec 26, 2024
1 parent 2ac58b8 commit b8f2d6e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions third-party/thrift/src/thrift/compiler/whisker/parser.cc
Original file line number Diff line number Diff line change
Expand Up @@ -619,11 +619,11 @@ class parser {

parse_result condition = parse_expression(scan);
if (!condition.has_value()) {
report_expected(scan, fmt::format("expression in else-if clause"));
report_expected(scan, "expression in else-if clause");
}
ast::expression cond = std::move(condition).consume_and_advance(&scan);
if (!try_consume_token(&scan, tok::close)) {
report_expected(scan, fmt::format("{} in else-if clause", tok::close));
report_expected(scan, "{} in else-if clause", tok::close);
}
scan = scan.make_fresh();

Expand Down

0 comments on commit b8f2d6e

Please sign in to comment.