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

Fixed issue #6239 removing toString() on String(CLI) #6268

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

Conversation

richochetclementine1315
Copy link

@richochetclementine1315 richochetclementine1315 commented Jan 15, 2025

  1. " [[Improvement] No need for toString() on string (CLI) #6239 ] Fixed: Unnessary toString() on String(CLI)"

What changes were proposed in this pull request?

Unnessary toString() on String(CLI).
'all' is already a string . Calling 'toString' won't change anything

Why are the changes needed?

1st CHANGE: Removing toString() on String(CLI)
REASON: 'all' is already a string . Calling 'toString' won't change anything
2nd CHANGE: String all = roles.isEmpty() ? "The user has no roles." : String.join(",", roles);
REASON: If the roles list is empty, all will be set to the string "The user has no roles.", otherwise, all will be a comma-separated string created by joining the elements of the roles list.

Fix: #(6239)

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.

1 participant