Skip to content

Commit

Permalink
[#6517] fix: unneeded call to toString() (#6521)
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

As tags is an array of strings, `tags[0].toString()` doesn't require
`toString()`.

### Why are the changes needed?

to string method not needed.

Fix: #6517 

### Does this PR introduce _any_ user-facing change?

no

### How was this patch tested?

no needed
  • Loading branch information
JavedAbdullah authored Feb 25, 2025
1 parent ce5fd51 commit f39f4d4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void handle() {
printInformation(
entity + " removed tags " + String.join(",", tags) + " now tagged with " + all);
} else {
printInformation(entity + " removed tag " + tags[0].toString() + " now tagged with " + all);
printInformation(entity + " removed tag " + tags[0] + " now tagged with " + all);
}
}

Expand Down

0 comments on commit f39f4d4

Please sign in to comment.