Skip to content

Commit ac1799d

Browse files
author
Andrew Stucki
committed
spotless apply
1 parent d54e74e commit ac1799d

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

x-pack/plugin/ingest/src/main/java/org/elasticsearch/xpack/ingest/RegisteredDomainProcessor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,11 @@ public RegisteredDomainProcessor create(
163163
String targetField = ConfigurationUtils.readStringProperty(TYPE, processorTag, config, "target_field");
164164
String targetETLDField = ConfigurationUtils.readOptionalStringProperty(TYPE, processorTag, config, "target_etld_field");
165165
String targetSubdomainField = ConfigurationUtils.readOptionalStringProperty(
166-
TYPE, processorTag, config,"target_subdomain_field");
166+
TYPE,
167+
processorTag,
168+
config,
169+
"target_subdomain_field"
170+
);
167171
boolean ignoreMissing = ConfigurationUtils.readBooleanProperty(TYPE, processorTag, config, "ignore_missing", true);
168172

169173
return new RegisteredDomainProcessor(

x-pack/plugin/ingest/src/test/java/org/elasticsearch/xpack/ingest/RegisteredDomainProcessorTests.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,7 @@ public void testError() throws Exception {
3939
() -> testRegisteredDomainProcessor(buildEvent("foo.bar.baz"), null, null, null, false)
4040
);
4141
assertThat(e.getMessage(), containsString("unable to set domain information for document"));
42-
e = expectThrows(
43-
IllegalArgumentException.class,
44-
() -> testRegisteredDomainProcessor(buildEvent("$"), null, null, null, false)
45-
);
42+
e = expectThrows(IllegalArgumentException.class, () -> testRegisteredDomainProcessor(buildEvent("$"), null, null, null, false));
4643
assertThat(e.getMessage(), containsString("unable to set domain information for document"));
4744
}
4845

0 commit comments

Comments
 (0)