Skip to content

Commit 813e6df

Browse files
committed
fixing minor typos
1 parent d021e22 commit 813e6df

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

server/src/main/java/org/elasticsearch/ingest/SamplingService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public SamplingService(
8989
public void maybeSample(ProjectMetadata projectMetadata, IndexRequest indexRequest) {
9090
maybeSample(projectMetadata, indexRequest.index(), indexRequest, () -> {
9191
/*
92-
* The conditional scripts usd by random sampling work off of IngestDocuments, in the same way conditionals do in pipelines. In
92+
* The conditional scripts used by random sampling work off of IngestDocuments, in the same way conditionals do in pipelines. In
9393
* this case, we did not have an IngestDocument (which happens when there are no pipelines). So we construct one with the same
9494
* fields as this IndexRequest for use in conditionals. It is created in this lambda to avoid the expensive sourceAsMap call
9595
* if the condition is never executed.

server/src/test/java/org/elasticsearch/ingest/SamplingServiceRawDocumentTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ protected RawDocument mutateInstance(RawDocument instance) throws IOException {
4848
case 3 -> xContentType = randomValueOtherThan(xContentType, () -> randomFrom(XContentType.values()));
4949
default -> throw new IllegalArgumentException("Should never get here");
5050
}
51-
;
5251
return new RawDocument(projectId, indexName, source, xContentType);
5352
}
5453
}

server/src/test/java/org/elasticsearch/ingest/SamplingServiceSampleStatsTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ protected SampleStats mutateInstance(SampleStats instance) throws IOException {
7373
: null;
7474
default -> throw new IllegalArgumentException("Should never get here");
7575
}
76-
;
7776
return mutated;
7877
}
7978

0 commit comments

Comments
 (0)