From 5e62595de8d3aadcf84433bf03a11de966a416b5 Mon Sep 17 00:00:00 2001 From: Rachel Guan Date: Tue, 19 Apr 2022 14:11:23 -0400 Subject: [PATCH] Fix build warning for unused variable (#1594) --- .../registry/model/domain/token/AllocationTokenTest.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/core/src/test/java/google/registry/model/domain/token/AllocationTokenTest.java b/core/src/test/java/google/registry/model/domain/token/AllocationTokenTest.java index 949b6ff87..db8c579e9 100644 --- a/core/src/test/java/google/registry/model/domain/token/AllocationTokenTest.java +++ b/core/src/test/java/google/registry/model/domain/token/AllocationTokenTest.java @@ -197,12 +197,8 @@ public class AllocationTokenTest extends EntityTestCase { .build()); AllocationToken loadedToken = loadByEntity(token); assertThat(token).isEqualTo(loadedToken); - AllocationToken modifiedToken = - persistResource( - loadedToken - .asBuilder() - .setRenewalPriceBehavior(RenewalPriceBehavior.SPECIFIED) - .build()); + persistResource( + loadedToken.asBuilder().setRenewalPriceBehavior(RenewalPriceBehavior.SPECIFIED).build()); assertThat(loadByEntity(token).getRenewalPriceBehavior()) .isEqualTo(RenewalPriceBehavior.SPECIFIED); }