fix(接口测试): 修复场景变量为空值时Log中输出为null问题#12350
https://github.com/metersphere/metersphere/issues/12350
This commit is contained in:
parent
eba514746e
commit
b76a05858d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue