Skip to content

Commit 69740cf

Browse files
Responding to code review comments
1 parent 42d3941 commit 69740cf

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

Development/nmos-cpp-node/node_implementation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
#include "nmos/lldp_manager.h"
3939
#endif
4040
#include "nmos/media_type.h"
41-
#include "nmos/mxl.h"
4241
#include "nmos/model.h"
42+
#include "nmos/mxl.h"
4343
#include "nmos/node_interfaces.h"
4444
#include "nmos/node_resource.h"
4545
#include "nmos/node_resources.h"

Development/nmos/connection_api.cpp

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -365,14 +365,7 @@ namespace nmos
365365
const bool auto_value = type_auto_constraints.end() != type_auto_constraints.find(constraint.first);
366366
const bool null_value = type_null_constraints.end() != type_null_constraints.find(constraint.first);
367367

368-
if (auto_value || null_value)
369-
{
370-
properties[constraint.first] = make_staged_param_schema(constraint.second, auto_value, null_value);
371-
}
372-
else
373-
{
374-
properties[constraint.first] = constraint.second;
375-
}
368+
properties[constraint.first] = make_staged_param_schema(constraint.second, auto_value, null_value);
376369
}
377370

378371
web::json::push_back(items, value_of({

0 commit comments

Comments
 (0)