Code style improvements
This commit is contained in:
parent
5599ab5650
commit
e18d834461
@ -154,15 +154,17 @@ public class DefaultDataUpdateService implements DataUpdateService {
|
||||
for (AlarmSeverity severity : AlarmSeverity.values()) {
|
||||
if (createRules.has(severity.name())) {
|
||||
JsonNode spec = createRules.get(severity.name()).get("condition").get("spec");
|
||||
if (convertDeviceProfileAlarmRulesForVersion330(spec))
|
||||
if (convertDeviceProfileAlarmRulesForVersion330(spec)) {
|
||||
isUpdated = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (alarm.has("clearRule") && !alarm.get("clearRule").isNull()) {
|
||||
JsonNode spec = alarm.get("clearRule").get("condition").get("spec");
|
||||
if (convertDeviceProfileAlarmRulesForVersion330(spec))
|
||||
if (convertDeviceProfileAlarmRulesForVersion330(spec)) {
|
||||
isUpdated = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (isUpdated) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user