Made return work

This commit is contained in:
Vitalik Buterin 2014-01-08 18:31:03 -05:00
parent 7b19ba5811
commit f58543b81a

View file

@ -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;
}