lib/cose/key/base.rb in cose-1.0.0 vs lib/cose/key/base.rb in cose-1.1.0
- old
+ new
@@ -39,17 +39,15 @@
def serialize
CBOR.encode(map)
end
def map
- map = {
+ {
LABEL_BASE_IV => base_iv,
LABEL_KEY_OPS => key_ops,
LABEL_ALG => alg,
LABEL_KID => kid,
- }
-
- map.reject { |_k, v| v.nil? }
+ }.compact
end
end
end
end