From f58543b81a48d3f3733c4de10bfa83ad89e53ff7 Mon Sep 17 00:00:00 2001 From: Vitalik Buterin Date: Wed, 8 Jan 2014 18:31:03 -0500 Subject: [PATCH] Made return work --- src/eckey.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/eckey.js b/src/eckey.js index ad1d0ec..561585c 100644 --- a/src/eckey.js +++ b/src/eckey.js @@ -117,9 +117,8 @@ ECPubKey.prototype.multiply = function(key) { ECPubKey.prototype.export = function(formt) { var o = this.pub.getEncoded(this.compressed) - return - formt == 'hex' ? conv.bytesToHex(o) - : formt == 'bin' ? conv.bytesToString(o) + return formt == 'hex' ? conv.bytesToHex(o) + : formt == 'bin' ? conv.bytesToString(o) : o; }