Skip to content

Commit

Permalink
fix: remove useless case detected by Elixir 1.18-rc0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahamez committed Dec 16, 2024
1 parent a5d8da5 commit e0d52a5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/google/protobuf/duration.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e0d52a5

Please sign in to comment.