Skip to content

Commit 4574641

Browse files
committed
Fixing violations
Signed-off-by: Kshitij Tandon <[email protected]>
1 parent b163b00 commit 4574641

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/src/main/java/org/opensearch/search/aggregations/metrics/ScriptedMetricAggregator.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,8 +158,7 @@ public void collect(int doc, long owningBucketOrd) throws IOException {
158158
@Override
159159
public InternalAggregation buildAggregation(long owningBucketOrdinal) {
160160
Object result = aggStateForResult(owningBucketOrdinal).combine();
161-
if (result.getClass() != ScriptedAvg.class)
162-
StreamOutput.checkWriteable(result);
161+
if (result.getClass() != ScriptedAvg.class) StreamOutput.checkWriteable(result);
163162
return new InternalScriptedMetric(name, singletonList(result), reduceScript, metadata());
164163
}
165164

0 commit comments

Comments
 (0)