mirror of
https://github.com/astral-sh/ruff
synced 2026-01-07 14:44:17 -05:00
Refactor
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user