Skip to content

Commit 3277d23

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 3779c49 commit 3277d23

File tree

1 file changed

+4
-7
lines changed
  • x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/external/http/sender

1 file changed

+4
-7
lines changed

x-pack/plugin/inference/src/main/java/org/elasticsearch/xpack/inference/external/http/sender/HttpRequestSender.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,10 @@ private void startInternal(ActionListener<Void> listener) {
136136
@Override
137137
public void startSynchronously() {
138138
if (started.compareAndSet(false, true)) {
139-
ActionListener<Void> listener = ActionListener.wrap(
140-
unused -> {},
141-
exception -> {
142-
logger.error("Http sender failed to start", exception);
143-
ExceptionsHelper.maybeDieOnAnotherThread(exception);
144-
}
145-
);
139+
ActionListener<Void> listener = ActionListener.wrap(unused -> {}, exception -> {
140+
logger.error("Http sender failed to start", exception);
141+
ExceptionsHelper.maybeDieOnAnotherThread(exception);
142+
});
146143
startInternal(listener);
147144
}
148145
// Handle the case where start*() was already called and this would return immediately because the started flag is already true

0 commit comments

Comments
 (0)