lib/cose/key/ec2.rb in cose-1.0.0 vs lib/cose/key/ec2.rb in cose-1.1.0
- old
+ new
@@ -57,15 +57,13 @@
@y = y
end
end
def map
- map = super.merge(
+ super.merge(
Base::LABEL_KTY => KTY_EC2,
LABEL_Y => y,
- )
-
- map.reject { |_k, v| v.nil? }
+ ).compact
end
def to_pkey
if curve
group = OpenSSL::PKey::EC::Group.new(curve.pkey_name)