From e343a97f3779b54ec729ab0f91e5661c51ddb639 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sat, 7 Mar 2020 16:54:19 -0700 Subject: [PATCH] Don't use a splat here --- src/spectator/mocks/reflection.cr | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/spectator/mocks/reflection.cr b/src/spectator/mocks/reflection.cr index 3dbd264..cf014e1 100644 --- a/src/spectator/mocks/reflection.cr +++ b/src/spectator/mocks/reflection.cr @@ -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)