-
Notifications
You must be signed in to change notification settings - Fork 137
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
Clean up intersection types #2757
Clean up intersection types #2757
Conversation
Cadence Benchstat comparisonThis branch with compared with the base branch onflow:feature/stable-cadence commit 38e2a39 Collapsed results for better readability
|
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feature/stable-cadence #2757 +/- ##
==========================================================
+ Coverage 79.33% 79.34% +0.01%
==========================================================
Files 337 337
Lines 80822 80800 -22
==========================================================
- Hits 64117 64112 -5
+ Misses 14397 14381 -16
+ Partials 2308 2307 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
Description
decodeIntersectionType
, thedecodeTypeFn
parameter is unused.The parameter was used back when the function was used for decoding restricted types.
Remove the parameter
CheckIntersectionType
, a localcompositeType
variable is declared, i.e. isnil
, and immediately after there's anif compositeType != nil
, which is basically dead code.The variable was previous set when the function was checking a restricted type, and the LHS was a composite (e.g.
T{}
, vs e.g.AnyStruct{}
).Remove the variable and the following if statement.
master
branchFiles changed
in the Github PR explorer