From 2ac0a566236a6dbbe04f8717d894bafedcd5cbe2 Mon Sep 17 00:00:00 2001 From: Craig Perkins Date: Thu, 22 Aug 2024 22:46:05 -0400 Subject: [PATCH] spotlessApply Signed-off-by: Craig Perkins --- src/test/java/org/opensearch/jobscheduler/TrustStore.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/test/java/org/opensearch/jobscheduler/TrustStore.java b/src/test/java/org/opensearch/jobscheduler/TrustStore.java index 412b7879..e84554da 100644 --- a/src/test/java/org/opensearch/jobscheduler/TrustStore.java +++ b/src/test/java/org/opensearch/jobscheduler/TrustStore.java @@ -45,8 +45,6 @@ private X509Certificate[] loadCertificatesFromFile(String file) throws IOExcepti } CertificateFactory fact = CertificateFactory.getInstance(certType); - - try (InputStream is = Files.newInputStream(PathUtils.get(file))) { Collection certs = fact.generateCertificates(is); X509Certificate[] x509Certs = new X509Certificate[certs.size()];