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(core/services-oss): remove the starts_with #5036

Merged
merged 1 commit into from
Aug 22, 2024
Merged

Conversation

haoqixu
Copy link
Contributor

@haoqixu haoqixu commented Aug 22, 2024

What changes are included in this PR?

The strip_prefix() method returns None if the string doesn't start with the prefix, so we don't need to check the prefix before stripping.

This change removes the starts_with() and simplifies codes.

The `strip_prefix()` method returns None if the string doesn't start
with the prefix, so we don't need to check the prefix before stripping.

This change removes the `starts_with()` and simplifies codes.
@haoqixu haoqixu marked this pull request as ready for review August 22, 2024 09:37
@haoqixu haoqixu requested a review from Xuanwo as a code owner August 22, 2024 09:37
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thanks!

@Xuanwo Xuanwo merged commit 5463e20 into apache:main Aug 22, 2024
80 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants