Skip to content

Commit 7a7ea62

Browse files
committed
refact: remove warnings for elixir 1.18
1 parent 8588595 commit 7a7ea62

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/ex_image_info/types/webp.ex

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ defmodule ExImageInfo.Types.WEBP do
3232
<<_skip::bytes-size(2), sign::bytes-size(3), _::binary>> = next
3333

3434
cond do
35-
lossy == " " and first != 0x2F -> parse_lossy(first, next)
36-
lossy == "L" and sign != <<0x9D012A::size(24)>> -> parse_lossless(first, next)
35+
lossy == " " and first != <<0x2F>> -> parse_lossy(next)
36+
lossy == "L" and sign != <<0x9D012A::size(24)>> -> parse_lossless(next)
3737
lossy == "X" -> parse_vp8xbitstream(next)
3838
true -> nil
3939
end
@@ -58,14 +58,12 @@ defmodule ExImageInfo.Types.WEBP do
5858
## Private
5959

6060
defp parse_lossy(
61-
_first,
6261
<<_skip::bytes-size(5), w::little-size(16), h::little-size(16), _rest::binary>>
6362
) do
6463
{@mime, Bitwise.band(w, 0x3FFF), Bitwise.band(h, 0x3FFF), @ftype_vp8}
6564
end
6665

6766
defp parse_lossless(
68-
_first,
6967
<<one::size(8), two::size(8), three::size(8), four::size(8), _rest::binary>> =
7068
_buf
7169
) do

0 commit comments

Comments
 (0)