Skip to content

Commit

Permalink
enhance setErrorMsg, use StringUtils.isBlank
Browse files Browse the repository at this point in the history
  • Loading branch information
呈铭 committed Aug 21, 2024
1 parent 1fafe15 commit 87dc8ed
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
package com.alipay.sofa.rpc.core.response;

import com.alipay.sofa.rpc.common.utils.StringUtils;
import com.alipay.sofa.rpc.transport.AbstractByteBuf;

import java.io.Serializable;
Expand Down Expand Up @@ -105,7 +106,7 @@ public String getErrorMsg() {
* @param error the error
*/
public void setErrorMsg(String error) {
if (error == null) {
if (StringUtils.isBlank(error)) {
return;
}
errorMsg = error;
Expand Down

0 comments on commit 87dc8ed

Please sign in to comment.