diff --git a/src/cbor/from_cbor.cr b/src/cbor/from_cbor.cr index 4977cb7..5c822cd 100644 --- a/src/cbor/from_cbor.cr +++ b/src/cbor/from_cbor.cr @@ -208,7 +208,6 @@ end def Union.new(decoder : CBOR::Decoder) {% begin %} case decoder.current_token - {% if T.includes? Nil || T.includes? Bool %} when CBOR::Token::SimpleValueT # This value could be either a boolean or nil. value = decoder.read_simple_value @@ -224,7 +223,6 @@ def Union.new(decoder : CBOR::Decoder) else raise "value is neither Bool or Nil" end - {% end %} {% if T.includes? String %} when CBOR::Token::StringT return decoder.read_string