refactor(linter/preserve-caught-error): use IdentifierReference::reference_id over cell access#19493
Conversation
IdentifierReference::reference_id over cell acessIdentifierReference::reference_id over cell access
There was a problem hiding this comment.
Pull request overview
This PR refactors the preserve-caught-error linter rule to simplify code by using the IdentifierReference::reference_id() method instead of manually accessing the reference_id cell and checking for None.
Changes:
- Replaced manual cell access
ident.reference_id.get()with method callident.reference_id() - Removed explicit
Nonecheck that was previously returningfalse - Simplified the code from 4 lines to 1 line
Merging this PR will not alter performance
Comparing Footnotes
|
Merge activity
|
01ed3da to
33e1db7
Compare
4be0ba0 to
8f659ba
Compare
33e1db7 to
71067ff
Compare
8f659ba to
296a62c
Compare
71067ff to
7bad5a4
Compare
296a62c to
fbcbb45
Compare
7bad5a4 to
9bc4658
Compare
…erence_id` over cell access (#19493)
9bc4658 to
36bf284
Compare

No description provided.