Skip to content

Commit

Permalink
Back out "Fix build failure"
Browse files Browse the repository at this point in the history
Summary: These revert races are crazy

Reviewed By: iahs

Differential Revision: D67658450

fbshipit-source-id: 588aef719069f5a6e42ef6704478fccd7de1e340
  • Loading branch information
praihan authored and facebook-github-bot committed Dec 26, 2024
1 parent 200a2e6 commit b348d2f
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 @@ -616,11 +616,11 @@ class parser {

parse_result condition = parse_expression(scan);
if (!condition.has_value()) {
report_expected(scan, "expression in else-if clause");
report_expected(scan, fmt::format("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, "{} in else-if clause", tok::close);
report_expected(scan, fmt::format("{} in else-if clause", tok::close));
}
scan = scan.make_fresh();

Expand Down

0 comments on commit b348d2f

Please sign in to comment.