diff --git a/lib/internal/crypto/diffiehellman.js b/lib/internal/crypto/diffiehellman.js index 71fd13819c62cf..8466df2f79cf60 100644 --- a/lib/internal/crypto/diffiehellman.js +++ b/lib/internal/crypto/diffiehellman.js @@ -191,8 +191,6 @@ ECDH.prototype.generateKeys = function generateKeys(encoding, format) { ECDH.prototype.getPublicKey = function getPublicKey(encoding, format) { var f; if (format) { - if (typeof format === 'number') - f = format; if (format === 'compressed') f = POINT_CONVERSION_COMPRESSED; else if (format === 'hybrid')