From 0aab48eb9f4a72d12b1007f714a2d64bd9219094 Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Tue, 2 Jan 2018 11:37:13 -0800 Subject: [PATCH] Remove unused params being passed to Soy templates Soy is going to disallow passing params that are unused in the called template and its dependencies. This CL removes these unused params from the call sites. Passing an unused param might indicate a bug such as having a typo in an optional parameter. Please review this CL carefully and edit the code in Critique if this is the case. More information: [] Tested: TAP --sample for global presubmit queue [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=180571605 --- java/google/registry/ui/soy/registrar/Contact.soy | 2 -- 1 file changed, 2 deletions(-) diff --git a/java/google/registry/ui/soy/registrar/Contact.soy b/java/google/registry/ui/soy/registrar/Contact.soy index 11ae7fbb6..fa2c3c6f3 100644 --- a/java/google/registry/ui/soy/registrar/Contact.soy +++ b/java/google/registry/ui/soy/registrar/Contact.soy @@ -93,13 +93,11 @@ {call .postalInfo data="all"} {param localized: index($pi) == 1 /} {param item: $pi/} - {param itemPrefix: 'contact:' /} {param namePrefix: 'contact:postalInfo[' + index($pi) + '].contact:' /} {/call} {/foreach} {else} {call .postalInfo data="all"} - {param prefix: 'contact:' /} {param namePrefix: 'contact:postalInfo[0].contact:' /} {/call} {/if}