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

Consider using startsWith for a cleaner and more efficient way to check string prefixes. #1381

Open
joe-bowman opened this issue Apr 3, 2024 · 0 comments
Assignees
Labels

Comments

@joe-bowman
Copy link
Contributor

          Consider using `startsWith` for a cleaner and more efficient way to check string prefixes.
- if (denom.substring(0, 1) == "Q" || denom.substring(0, 2) == "AQ"){
+ if (denom.startsWith("Q") || denom.startsWith("AQ")){

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

    if (denom.startsWith("Q") || denom.startsWith("AQ")){

Originally posted by @coderabbitai[bot] in #1374 (comment)

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 a pull request may close this issue.

2 participants