mirror of
https://gitea.invidious.io/iv-org/shard-spectator.git
synced 2024-08-15 00:53:35 +00:00
Don't use a splat here
This commit is contained in:
parent
cb9f5338fe
commit
e343a97f37
1 changed files with 1 additions and 5 deletions
|
@ -16,11 +16,7 @@ module Spectator::Mocks
|
|||
else
|
||||
"::Spectator::Anything.new".id
|
||||
end %}
|
||||
{% if meth.splat_index && i == meth.splat_index %}
|
||||
*{{matcher}}{% if i < meth.args.size %},{% end %}
|
||||
{% else %}
|
||||
{{matcher}}{% if i < meth.args.size %},{% end %}
|
||||
{% end %}
|
||||
{{matcher}}{% if i < meth.args.size %},{% end %}
|
||||
{% end %}
|
||||
)
|
||||
::Spectator::Mocks::TypeRegistry.add({{@type.id.stringify}}, {{meth.name.symbolize}}, %source, %args)
|
||||
|
|
Loading…
Reference in a new issue