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

chore: simplify sync status comparison #21140

Merged
merged 3 commits into from
Dec 13, 2024

Conversation

crenshaw-dev
Copy link
Member

The variables we initialize from the deep copies and then mutate are never used again. I don't think this code does anything.

I also don't think it did anything when it was first written.

As long as tests pass, and no one else spots something I'm missing, I think we can safely remove these lines.

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@crenshaw-dev crenshaw-dev requested a review from a team as a code owner December 11, 2024 22:17
Copy link

bunnyshell bot commented Dec 11, 2024

❌ Preview Environment deleted from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

Copy link

codecov bot commented Dec 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (master@d9be098). Learn more about missing BASE report.
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master   #21140   +/-   ##
=========================================
  Coverage          ?   55.26%           
=========================================
  Files             ?      324           
  Lines             ?    55587           
  Branches          ?        0           
=========================================
  Hits              ?    30722           
  Misses            ?    22241           
  Partials          ?     2624           

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

Copy link
Member

@agaudreault agaudreault left a comment

Choose a reason for hiding this comment

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

Waiting for unit tests :)

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
@crenshaw-dev
Copy link
Member Author

@agaudreault added tests, PTAL

Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
Copy link
Member

@agaudreault agaudreault left a comment

Choose a reason for hiding this comment

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

LGTM

@crenshaw-dev crenshaw-dev enabled auto-merge (squash) December 13, 2024 17:49
@crenshaw-dev crenshaw-dev merged commit 72c711e into argoproj:master Dec 13, 2024
26 checks passed
@crenshaw-dev crenshaw-dev deleted the simplify-sync-comparison branch December 13, 2024 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants