Skip to content

Commit 756eb0d

Browse files
committed
Move this comment
1 parent 453f621 commit 756eb0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,9 +1196,6 @@ static String getProcessorName(Processor processor) {
11961196
processor = conditionalProcessor.getInnerProcessor();
11971197
}
11981198

1199-
// if there's a tag, OR if it's a pipeline processor, then the processor name is a compound thing,
1200-
// BUT if neither of those apply, then it's just the type -- so we can return the type itself without
1201-
// allocating a new String object
12021199
String tag = processor.getTag();
12031200
if (tag != null && tag.isEmpty()) {
12041201
tag = null; // it simplifies the rest of the logic slightly to coalesce to null
@@ -1209,6 +1206,9 @@ static String getProcessorName(Processor processor) {
12091206
pipelineName = pipelineProcessor.getPipelineTemplate().newInstance(Map.of()).execute();
12101207
}
12111208

1209+
// if there's a tag, OR if it's a pipeline processor, then the processor name is a compound thing,
1210+
// BUT if neither of those apply, then it's just the type -- so we can return the type itself without
1211+
// allocating a new String object
12121212
if (tag == null && pipelineName == null) {
12131213
return processor.getType();
12141214
} else {

0 commit comments

Comments
 (0)