From 8ef81caeea4bd2e1b832f7742d34e7d4c963251d Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Wed, 28 Jun 2023 17:13:26 -0400 Subject: [PATCH] Remove unnecessary line Signed-off-by: Craig Perkins --- .../org/opensearch/common/util/concurrent/ThreadContext.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/java/org/opensearch/common/util/concurrent/ThreadContext.java b/server/src/main/java/org/opensearch/common/util/concurrent/ThreadContext.java index 2b7ccf8b9d36b..4656077b5c96c 100644 --- a/server/src/main/java/org/opensearch/common/util/concurrent/ThreadContext.java +++ b/server/src/main/java/org/opensearch/common/util/concurrent/ThreadContext.java @@ -381,8 +381,7 @@ public String getHeader(String key) { * Returns the persistent header for the given key or null if not present - persistent headers cannot be stashed */ public Object getPersistent(String key) { - Object value = threadLocal.get().persistentHeaders.get(key); - return value; + return threadLocal.get().persistentHeaders.get(key); } /**