Code cleanup

This commit is contained in:
Uwe Seimet 2021-12-19 17:28:02 +01:00
parent 405dbb034c
commit 73e0df8557

View File

@ -505,12 +505,8 @@ PbOperationParameter *RascsiResponse::AddOperationParameter(PbOperationMetaData
PbOperationParameter *parameter = meta_data->add_parameters();
parameter->set_name(name);
(*parameter->mutable_description())["en"] = description;
if (!default_value.empty()) {
parameter->set_default_value(default_value);
}
else {
parameter->set_is_mandatory(is_mandatory);
}
parameter->set_default_value(default_value);
parameter->set_is_mandatory(is_mandatory);
return parameter;
}