From f382dd43dfa76ab7cc7ebe4cb30b9fc05285ff8c Mon Sep 17 00:00:00 2001 From: grapigeau Date: Tue, 1 Oct 2024 14:33:40 -0400 Subject: [PATCH] properly reformat new code --- .../on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java | 12 ++++++------ .../java/ca/on/oicr/gsi/shesmu/nabu/NabuPlugin.java | 3 ++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java b/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java index f6b2d966a..3677c7d04 100644 --- a/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java +++ b/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/ArchiveCaseAction.java @@ -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()); @@ -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); diff --git a/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/NabuPlugin.java b/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/NabuPlugin.java index c1a699097..fa6b852df 100644 --- a/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/NabuPlugin.java +++ b/plugin-nabu/src/main/java/ca/on/oicr/gsi/shesmu/nabu/NabuPlugin.java @@ -129,7 +129,8 @@ public NabuPlugin(Path fileName, String instanceName, Definer 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); }