diff --git a/packages/binding-opcua/src/opcua-protocol-client.ts b/packages/binding-opcua/src/opcua-protocol-client.ts index 3ced84c42..c379f6479 100644 --- a/packages/binding-opcua/src/opcua-protocol-client.ts +++ b/packages/binding-opcua/src/opcua-protocol-client.ts @@ -279,7 +279,7 @@ export class OPCUAProtocolClient implements ProtocolClient { const nodeId = await this._resolveNodeId2(form, fNodeId); return await this._withSession(form, async (session) => { const dataTypeOrNull = await getBuiltInDataType(session, nodeId); - if (dataTypeOrNull != undefined && dataTypeOrNull !== DataType.Null) { + if (dataTypeOrNull !== undefined && dataTypeOrNull !== DataType.Null) { return dataTypeOrNull; } throw new Error("cannot predict dataType for nodeId " + nodeId.toString());