Skip to content

Commit

Permalink
[issue-2998] remove invalid check in isValidLabelValue
Browse files Browse the repository at this point in the history
  • Loading branch information
pjfanning committed Jan 23, 2025
1 parent 428ae1f commit f4cd452
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ private boolean isValidLabelNameContinuation(char c) {
* @return true/false
*/
private boolean isValidLabelValue(String s) {
return s != null && s.equals(new String(s.getBytes(StandardCharsets.UTF_8)));
return s != null;
}

private boolean isSum(String s) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,6 @@ private static boolean isValidLabelNameContinuation(char c) {
* @return true/false
*/
private static boolean isValidLabelValue(String s) {
return s != null && s.equals(new String(s.getBytes(StandardCharsets.UTF_8)));
return s != null;
}
}

0 comments on commit f4cd452

Please sign in to comment.