fix(接口测试): 修复场景变量为空值时Log中输出为null问题#12350

https://github.com/metersphere/metersphere/issues/12350
This commit is contained in:
fit2-zhao 2022-04-07 15:54:08 +08:00 committed by 刘瑞斌
parent eba514746e
commit b76a05858d
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ public class ScenarioVariable {
}
public boolean isConstantValid() {
if ((StringUtils.isEmpty(this.type) || StringUtils.equals(this.type, VariableTypeConstants.CONSTANT.name())) && StringUtils.isNotEmpty(name) && StringUtils.isNotEmpty(value)) {
if ((StringUtils.isEmpty(this.type) || StringUtils.equals(this.type, VariableTypeConstants.CONSTANT.name())) && StringUtils.isNotEmpty(name)) {
return true;
}
return false;