Skip to content

Commit

Permalink
properly reformat new code
Browse files Browse the repository at this point in the history
  • Loading branch information
grapigeau committed Oct 1, 2024
1 parent ca12ab7 commit bb51bd9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ public ActionState perform(
body = HttpRequest.BodyPublishers.ofString(createRequestBody());
final var authentication = owner.get().NabuToken();
authenticationHeader =
authentication == null ? Optional.empty() : Optional.of(authentication);
authentication == null ? Optional.empty() : Optional.of(authentication);
} catch (final Exception e) {
e.printStackTrace();
this.errors = Collections.singletonList(e.getMessage());
Expand All @@ -188,11 +188,11 @@ public ActionState perform(
authenticationHeader.ifPresent(header -> builder.header("X-API-KEY", header));

final var request =
builder
.header("Content-type", "application/json")
.header("Accept", "application/json")
.POST(body)
.build();
builder
.header("Content-type", "application/json")
.header("Accept", "application/json")
.POST(body)
.build();

owner.log("NABU REQUEST: " + request, LogLevel.DEBUG, null);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ public NabuPlugin(Path fileName, String instanceName, Definer<NabuPlugin> define
caseArchiveCache = new CaseArchiveCache(fileName);
}

@ShesmuAction(description = "send archiving info for case to Nabu (completes when files archived)")
@ShesmuAction(
description = "send archiving info for case to Nabu (completes when files archived)")
public ArchiveCaseAction archive() {
return new ArchiveCaseAction(definer);
}
Expand Down

0 comments on commit bb51bd9

Please sign in to comment.