Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
case opcua.AttributeIds.Description:
case opcua.AttributeIds.ValueRank:
case opcua.AttributeIds.ArrayDimensions:
case opcua.AttributeIds.Executable:
case opcua.AttributeIds.UserExecutable:
case opcua.AttributeIds.MinimumSamplingInterval:
if (!dataValue.value.value) {
return "null";
}
return dataValue.value.value.toString();
case opcua.AttributeIds.UserAccessLevel:
case opcua.AttributeIds.AccessLevel:
if (!dataValue.value.value) {
return "null";
}
return opcua.accessLevelFlagToString(dataValue.value.value) + " (" + dataValue.value.value + ")";
default:
return dataValueToString(dataValue);
}
}
case AttributeIds.Description:
case AttributeIds.ValueRank:
case AttributeIds.ArrayDimensions:
case AttributeIds.Executable:
case AttributeIds.UserExecutable:
case AttributeIds.MinimumSamplingInterval:
if (!dataValue.value.value) {
return "null";
}
return dataValue.value.value.toString();
case AttributeIds.UserAccessLevel:
case AttributeIds.AccessLevel:
if (!dataValue.value.value) {
return "null";
}
return accessLevelFlagToString(dataValue.value.value) + " (" + dataValue.value.value + ")";
default:
return dataValueToString(dataValue);
}
}