-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[fix][fn] check user metric len before iterating #20021
Conversation
@flowchartsman Please add the following content to your PR description and select a checkbox:
|
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.
LGTM
Thanks for taking care of this!
Codecov Report
@@ Coverage Diff @@
## master #20021 +/- ##
=========================================
Coverage 72.86% 72.86%
- Complexity 31628 31634 +6
=========================================
Files 1861 1858 -3
Lines 137500 137424 -76
Branches 15141 15107 -34
=========================================
- Hits 100187 100136 -51
+ Misses 29351 29301 -50
- Partials 7962 7987 +25
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Merging... @flowchartsman Thanks for your contribution! You can ping me as a reviewer the next time for usability changes. |
Co-authored-by: Andy Walker <andy@andy.dev> (cherry picked from commit 52e8144)
Fixes #20020
Modifications
check for
len() == 0
before iterating, otherwise return empty map.Verifying this change
This change added tests and can be verified as follows:
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
Matching PR in forked repository
PR in forked repository: flowchartsman#1