Skip to content

Commit

Permalink
Dont use deprecated splat operator
Browse files Browse the repository at this point in the history
  • Loading branch information
spuun committed May 2, 2024
1 parent 3bc750e commit 6130f53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mqtt/protocol/packets/packets.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ macro decode_assert(condition, err, *args)
({{condition}} || raise Error::PacketDecode.new {{err}})
{% else %}
# here we just assume it's a class name
({{condition}} || raise {{err}}.new({{*args}}))
({{condition}} || raise {{err}}.new({{args.splat}}))
{% end %}
end

Expand Down

0 comments on commit 6130f53

Please sign in to comment.