Skip to content
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(yaml): remove dead code in Schema constructor #5445

Merged
merged 3 commits into from
Jul 16, 2024
Merged

Conversation

iuioiua
Copy link
Contributor

@iuioiua iuioiua commented Jul 15, 2024

This code checked that all Type objects passed to Schema.implicit had their kind properties set to scalar. I can confirm this is true for in all cases:

  • Timestamp
  • Merge
  • Nil
  • Bool
  • Int
  • Float

This code is not controlled by the user.

@iuioiua iuioiua requested a review from kt3k as a code owner July 15, 2024 06:19
@github-actions github-actions bot added the yaml label Jul 15, 2024
Copy link

codecov bot commented Jul 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.36%. Comparing base (df388b1) to head (e1d71f4).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5445   +/-   ##
=======================================
  Coverage   96.35%   96.36%           
=======================================
  Files         461      461           
  Lines       37762    37755    -7     
  Branches     5576     5574    -2     
=======================================
- Hits        36385    36382    -3     
+ Misses       1335     1331    -4     
  Partials       42       42           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@kt3k kt3k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iuioiua iuioiua enabled auto-merge (squash) July 16, 2024 10:52
@iuioiua iuioiua merged commit 07af28c into main Jul 16, 2024
14 checks passed
@iuioiua iuioiua deleted the yaml-kind-scalar branch July 16, 2024 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants