From 2e07915d167b057ed703a3499d089bb7f487033e Mon Sep 17 00:00:00 2001 From: imalasong Date: Thu, 5 Sep 2024 22:12:56 +0800 Subject: [PATCH] optimize: remove excess empty string judgment --- .../src/main/java/com/alipay/sofa/jraft/entity/PeerId.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java b/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java index 8c9ec8b4e..040286019 100644 --- a/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java +++ b/jraft-core/src/main/java/com/alipay/sofa/jraft/entity/PeerId.java @@ -192,7 +192,7 @@ public String toString() { * */ public boolean parse(final String s) { - if (StringUtils.isEmpty(s) || StringUtils.isBlank(s)) { + if (StringUtils.isBlank(s)) { return false; }