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

Core: Delegate resetMainBranch to removeRef in TableMetadata::Builder #12149

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

smaheshwar-pltr
Copy link
Contributor

@smaheshwar-pltr smaheshwar-pltr commented Feb 1, 2025

Tiny, non-semantic change to prefer delegation to duplication, as #11109 suggests that keeping these method bodies separate can be risky.

(We may want to remove resetMainBranch entirely - see #12149 (comment). I'll update this PR accordingly if so)

@github-actions github-actions bot added the core label Feb 1, 2025
}

return this;
return removeRef(SnapshotRef.MAIN_BRANCH);
Copy link
Contributor

@ebyhr ebyhr Feb 2, 2025

Choose a reason for hiding this comment

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

We could remove resetMainBranch method. The logic between removeRef(SnapshotRef.MAIN_BRANCH) and resetMainBranch() were different until #11779. They are same now.

cc: @amogh-jahagirdar

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes - happy to make this change

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