Improve object validation in createPairingAuthorisationProtoMessage

pull/427/head
sachaaaaa 6 years ago
parent a4411007b0
commit a2463f74c3

@ -73,8 +73,8 @@
if ( if (
!primaryDevicePubKey || !primaryDevicePubKey ||
!secondaryDevicePubKey || !secondaryDevicePubKey ||
type === undefined || !requestSignature ||
type === null typeof type !== 'number'
) { ) {
throw new Error( throw new Error(
'createPairingAuthorisationProtoMessage: pubkeys or type is not set' 'createPairingAuthorisationProtoMessage: pubkeys or type is not set'

Loading…
Cancel
Save