Removed a statement that I'll need to put back in

This commit is contained in:
Cyrus 2024-03-07 15:07:32 -05:00
parent 70ca2ced7b
commit 37850a6c90

View File

@ -12,12 +12,14 @@ import hirs.attestationca.persist.enums.AppraisalStatus;
import lombok.extern.log4j.Log4j2; import lombok.extern.log4j.Log4j2;
import org.bouncycastle.cert.X509AttributeCertificateHolder; import org.bouncycastle.cert.X509AttributeCertificateHolder;
import java.awt.*;
import java.io.IOException; import java.io.IOException;
import java.security.KeyStore; import java.security.KeyStore;
import java.security.KeyStoreException; import java.security.KeyStoreException;
import java.security.cert.CertificateExpiredException; import java.security.cert.CertificateExpiredException;
import java.security.cert.CertificateNotYetValidException; import java.security.cert.CertificateNotYetValidException;
import java.security.cert.X509Certificate; import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
@ -265,10 +267,6 @@ public class CredentialValidator extends SupplyChainCredentialValidator {
return new AppraisalStatus(FAIL, message); return new AppraisalStatus(FAIL, message);
} }
} }
if (componentInfos.isEmpty()) {
message = baseErrorMessage + "a list of device components";
return new AppraisalStatus(FAIL, message);
}
// parse out the provided delta and its specific chain. // parse out the provided delta and its specific chain.
List<ComponentResult> origPcComponents = componentResultRepository List<ComponentResult> origPcComponents = componentResultRepository