We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fbb409b commit c906e43Copy full SHA for c906e43
compiler/parser/python.lalrpop
@@ -364,11 +364,11 @@ IfStatement: ast::Stmt = {
364
// Determine last else:
365
let mut last = s3.map(|s| s.2).unwrap_or_default();
366
let end_location = last
367
- .last()
368
- .or_else(|| s2.last().and_then(|last| last.4.last()))
369
- .or_else(|| body.last())
370
- .unwrap()
371
- .end_location;
+ .last()
+ .or_else(|| s2.last().and_then(|last| last.4.last()))
+ .or_else(|| body.last())
+ .unwrap()
+ .end_location;
372
// handle elif:
373
for i in s2.into_iter().rev() {
374
let x = ast::Stmt {
0 commit comments