Skip to content

Commit 96b94da

Browse files
Address spotless fix
Signed-off-by: Darshit Chanpura <dchanp@amazon.com>
1 parent d61028f commit 96b94da

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/main/java/org/opensearch/security/resources/ResourceSharingIndexHandler.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -689,19 +689,19 @@ public void patchSharingInfo(
689689
try (ThreadContext.StoredContext ctx = this.threadPool.getThreadContext().stashContext()) {
690690
// update the record
691691
IndexRequest ir = client.prepareIndex(resourceSharingIndex)
692-
.setId(resourceId)
693-
.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
694-
.setSource(updatedSharingInfo.toXContent(jsonBuilder(), ToXContent.EMPTY_PARAMS))
695-
.setOpType(DocWriteRequest.OpType.INDEX)
696-
.request();
692+
.setId(resourceId)
693+
.setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE)
694+
.setSource(updatedSharingInfo.toXContent(jsonBuilder(), ToXContent.EMPTY_PARAMS))
695+
.setOpType(DocWriteRequest.OpType.INDEX)
696+
.request();
697697

698698
client.index(ir, ActionListener.wrap(idxResponse -> {
699699
ctx.restore();
700700
LOGGER.info(
701-
"Successfully updated {} resource sharing info for resource {} in index {}.",
702-
resourceSharingIndex,
703-
resourceId,
704-
resourceIndex
701+
"Successfully updated {} resource sharing info for resource {} in index {}.",
702+
resourceSharingIndex,
703+
resourceId,
704+
resourceIndex
705705
);
706706

707707
listener.onResponse(updatedSharingInfo);

0 commit comments

Comments
 (0)