Improve object validation in createPairingAuthorisationProtoMessage

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

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

Loading…
Cancel
Save