Skip to content

Commit 39782fc

Browse files
committed
Fix Sonar finding.
1 parent e2caae0 commit 39782fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

powertools-cloudformation/src/test/java/software/amazon/lambda/powertools/cloudformation/CloudFormationIntegrationTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,12 @@ public class CloudFormationIntegrationTest {
4545
public static final String LOG_STREAM_NAME = "test-log-stream";
4646

4747
private static CloudFormationCustomResourceEvent.CloudFormationCustomResourceEventBuilder baseEvent(int httpPort) {
48-
CloudFormationCustomResourceEvent.CloudFormationCustomResourceEventBuilder builder = CloudFormationCustomResourceEvent
48+
return CloudFormationCustomResourceEvent
4949
.builder()
5050
.withResponseUrl("http://localhost:" + httpPort + "/")
5151
.withStackId("123")
5252
.withRequestId("234")
5353
.withLogicalResourceId("345");
54-
55-
return builder;
5654
}
5755

5856
@ParameterizedTest

0 commit comments

Comments
 (0)