-
Notifications
You must be signed in to change notification settings - Fork 96
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 Coverity code smells in Profiles.ts #3029
Conversation
Signed-off-by: Timothy Johnson <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3029 +/- ##
==========================================
+ Coverage 93.45% 93.47% +0.01%
==========================================
Files 104 104
Lines 10986 10984 -2
Branches 2414 2311 -103
==========================================
Hits 10267 10267
+ Misses 718 716 -2
Partials 1 1 ☔ View full report in Codecov by Sentry. |
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.
This LGTM, thanks Timothy -- just a quick question regarding the original parameter type: Do we know why node
was previously marked as optional? If we don't expect the function to be called without one, then this change is good to go - I was mostly curious to know if you had any insight on that 😋
Quality Gate passedIssues Measures |
I believe it may have been copied from other methods in |
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! 😋
not sure why the node was optional in the first place 😋
Proposed changes
Fixes 2 code smells detected by Coverity for nullable values
Release Notes
Milestone:
Changelog:
Types of changes
Checklist
General
yarn workspace vscode-extension-for-zowe vscode:prepublish
pnpm --filter vscode-extension-for-zowe vscode:prepublish
Code coverage
Deployment
Further comments