fix: correct linter errors

I missed some of the `let` definitions for the ca, cert, and key when
establishing the docker TLS connection.

DCO-1.1 Signed-off-by: Patrick Wagstrom <160672+pridkett@users.noreply.github.com>
This commit is contained in:
Patrick Wagstrom 2024-09-21 18:22:37 -04:00
parent 495bf51ac8
commit f65453e50c
No known key found for this signature in database
GPG key ID: 96EB828DBB815796

View file

@ -156,6 +156,10 @@ class DockerHost {
let certPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameCert); let certPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameCert);
let keyPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameKey); let keyPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameKey);
let key;
let cert;
let ca;
if (dockerType === "tcp") { if (dockerType === "tcp") {
if (fs.existsSync(keyPath) && fs.existsSync(certPath)) { if (fs.existsSync(keyPath) && fs.existsSync(certPath)) {
// Load the key and cert // Load the key and cert