mirror of
https://github.com/RustPython/Parser.git
synced 2025-08-26 13:24:42 +00:00
Refactor
This commit is contained in:
parent
06c92bb899
commit
165b979733
1 changed files with 2 additions and 1 deletions
|
@ -439,7 +439,8 @@ TryStatement: ast::Stmt = {
|
|||
.last()
|
||||
.map(|last| last.end_location)
|
||||
.or_else(|| orelse.last().map(|last| last.end_location))
|
||||
.unwrap_or_else(|| handlers.last().unwrap().end_location);
|
||||
.or_else(|| handlers.last().map(|last| last.end_location))
|
||||
.unwrap();
|
||||
ast::Stmt {
|
||||
custom: (),
|
||||
location,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue