From e0d52a51818fc9da3e826997c78fd63b212935a6 Mon Sep 17 00:00:00 2001 From: Alexandre Hamez Date: Mon, 16 Dec 2024 15:23:40 +0100 Subject: [PATCH] fix: remove useless case detected by Elixir 1.18-rc0 --- lib/google/protobuf/duration.ex | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/google/protobuf/duration.ex b/lib/google/protobuf/duration.ex index c1d1ba79..df069772 100644 --- a/lib/google/protobuf/duration.ex +++ b/lib/google/protobuf/duration.ex @@ -60,7 +60,6 @@ defimpl Protox.JsonMessageDecoder, for: Google.Protobuf.Duration do end case Decimal.parse(json_decimal) do - {:ok, dec} -> dec {dec, ""} -> dec {_dec, _suffix} -> raise Protox.JsonDecodingError.new("invalid duration format") :error -> raise Protox.JsonDecodingError.new("invalid duration format")