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

replace strings.TrimRight with strings.TrimSuffix and fix typo #5501

Merged
merged 1 commit into from
Dec 10, 2019
Merged

replace strings.TrimRight with strings.TrimSuffix and fix typo #5501

merged 1 commit into from
Dec 10, 2019

Conversation

tanjunchen
Copy link
Contributor

Signed-off-by: tanjunchen [email protected]

In string based trim scenario, we shall always use string based TrimPrefix/TrimSuffix instead of char based TrimLeft/TrimRight.
See the diff here: https://play.golang.org/p/S7cBaoIxPQy

golang:
https://golang.org/pkg/strings/#TrimRight

@tanjunchen tanjunchen requested a review from sougou as a code owner December 4, 2019 03:12
@tanjunchen
Copy link
Contributor Author

/retest

1 similar comment
@tanjunchen
Copy link
Contributor Author

/retest

@tanjunchen
Copy link
Contributor Author

@sougou

@tanjunchen
Copy link
Contributor Author

@sougou can you this pr

@sougou sougou merged commit 46a607e into vitessio:master Dec 10, 2019
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