mirror of
https://github.com/akuker/RASCSI.git
synced 2025-01-02 09:35:58 +00:00
Code cleanup
This commit is contained in:
parent
405dbb034c
commit
73e0df8557
@ -505,12 +505,8 @@ PbOperationParameter *RascsiResponse::AddOperationParameter(PbOperationMetaData
|
|||||||
PbOperationParameter *parameter = meta_data->add_parameters();
|
PbOperationParameter *parameter = meta_data->add_parameters();
|
||||||
parameter->set_name(name);
|
parameter->set_name(name);
|
||||||
(*parameter->mutable_description())["en"] = description;
|
(*parameter->mutable_description())["en"] = description;
|
||||||
if (!default_value.empty()) {
|
|
||||||
parameter->set_default_value(default_value);
|
parameter->set_default_value(default_value);
|
||||||
}
|
|
||||||
else {
|
|
||||||
parameter->set_is_mandatory(is_mandatory);
|
parameter->set_is_mandatory(is_mandatory);
|
||||||
}
|
|
||||||
|
|
||||||
return parameter;
|
return parameter;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user