-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(step-generation): getTrashBinAddressableAreaName to always r… #17741
Conversation
…eturn AddressableAreaName
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## edge #17741 +/- ##
==========================================
- Coverage 61.93% 61.93% -0.01%
==========================================
Files 2824 2823 -1
Lines 217106 217121 +15
Branches 18437 18439 +2
==========================================
+ Hits 134458 134465 +7
- Misses 82463 82471 +8
Partials 185 185
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
if (trashLocation == null) { | ||
console.error( | ||
`could not find trashLocation in airGapInMovableTrash with entity ${trash?.name}` | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, thanks for doing this, but I'm not sure if it helps much after seeing this code. I was hoping that we'd be able to find a way to skip the == null
check entirely. I don't think this change makes the code any simpler or shorter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah i agree... we shouldn't see trashLocation
== null so i could remove the console.error but i don't feel comfortable doing that until we reexamine fixing the location type
closing this PR in place of this: #17774 |
…eturn AddressableAreaName
Overview
Slight refactor so that the
getTrashBinAddressableAreaName
util always returnsAddressableAreaName
and nevernull
to help with py interopTest Plan and Hands on Testing
Review the code. functionality should remain the same
Changelog
null
Risk assessment
low, should maintain current functionality