[Watcher] Remove line that accidentally sneaked in
Original commit: elastic/x-pack-elasticsearch@36fb1d27874e003b0c28d03c2d225d3c2d3abd39
@@ -41,7 +41,6 @@ public class WatcherClientHelper {
} else {
try (ThreadContext.StoredContext ignored = client.threadPool().getThreadContext().stashContext()) {
Map<String, String> filteredHeaders = watch.status().getHeaders().entrySet().stream()
- .filter(Watcher.HEADER_FILTERS::contains)
.filter(e -> Watcher.HEADER_FILTERS.contains(e.getKey()))
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
client.threadPool().getThreadContext().copyHeaders(filteredHeaders.entrySet());
