Skip to content

Commit

Permalink
chore: remove useless detection of invalid wire type
Browse files Browse the repository at this point in the history
It's now detected directly in the generated code
  • Loading branch information
ahamez committed Feb 8, 2025
1 parent 34cc966 commit 91c1eb5
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/protox/decode.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ defmodule Protox.Decode do
@wire_64bits -> {key >>> 3, @wire_64bits, rest}
@wire_delimited -> {key >>> 3, @wire_delimited, rest}
@wire_varint -> {key >>> 3, @wire_varint, rest}
wire_type -> raise Protox.DecodingError.new(bytes, "invalid wire type #{wire_type}")
end
end

Expand Down

0 comments on commit 91c1eb5

Please sign in to comment.