Skip to content

Commit 7fd8460

Browse files
lucy66hwluckyxilu66
authored andcommitted
spotlessApply
Signed-off-by: xil <fridalu66@gmail.com>
1 parent 7c0c3e3 commit 7fd8460

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

modules/transport-grpc/src/test/java/org/opensearch/transport/grpc/proto/request/search/query/functionscore/ExpDecayFunctionProtoConverterTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ public void testFromProtoWithNullContainer() {
104104
}
105105

106106
public void testFromProtoWithWrongFunctionType() {
107-
FunctionScoreContainer container = FunctionScoreContainer.newBuilder()
108-
.setWeight(1.0f)
109-
.build();
107+
FunctionScoreContainer container = FunctionScoreContainer.newBuilder().setWeight(1.0f).build();
110108

111109
IllegalArgumentException exception = expectThrows(IllegalArgumentException.class, () -> converter.fromProto(container));
112110

modules/transport-grpc/src/test/java/org/opensearch/transport/grpc/proto/request/search/query/functionscore/LinearDecayFunctionProtoConverterTests.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ public void testFromProtoWithNullContainer() {
104104
}
105105

106106
public void testFromProtoWithWrongFunctionType() {
107-
FunctionScoreContainer container = FunctionScoreContainer.newBuilder()
108-
.setWeight(1.0f)
109-
.build();
107+
FunctionScoreContainer container = FunctionScoreContainer.newBuilder().setWeight(1.0f).build();
110108

111109
IllegalArgumentException exception = expectThrows(IllegalArgumentException.class, () -> converter.fromProto(container));
112110

0 commit comments

Comments
 (0)