Skip to content

Commit

Permalink
Use 'unused' instead of 'ignore' to silence Google's unused-variable …
Browse files Browse the repository at this point in the history
…checker.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=187094446
  • Loading branch information
tbreisacher committed Feb 27, 2018
1 parent ac40591 commit 5001deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/com/google/javascript/rhino/jstype/JSTypeRegistry.java
Expand Up @@ -1754,7 +1754,7 @@ public TemplateTypeMap createTemplateTypeMap(
public ObjectTypeI instantiateGenericsWithUnknown(ObjectType obj) {
if (obj.isTemplatizedType()) {
ImmutableList.Builder<JSType> unknowns = ImmutableList.builder();
for (TemplateType ignore : obj.getTemplateTypeMap().getTemplateKeys()) {
for (TemplateType unused : obj.getTemplateTypeMap().getTemplateKeys()) {
unknowns.add(getNativeType(UNKNOWN_TYPE));
}
return createTemplatizedType(obj.toMaybeTemplatizedType().getRawType(), unknowns.build());
Expand Down

0 comments on commit 5001deb

Please sign in to comment.