From f65453e50c5b71e37545fdc506ee3d3637559432 Mon Sep 17 00:00:00 2001 From: Patrick Wagstrom <160672+pridkett@users.noreply.github.com> Date: Sat, 21 Sep 2024 18:22:37 -0400 Subject: [PATCH] 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> --- server/docker.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/docker.js b/server/docker.js index 0d22f654..8f3789c6 100644 --- a/server/docker.js +++ b/server/docker.js @@ -156,6 +156,10 @@ class DockerHost { let certPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameCert); let keyPath = path.join(Database.dockerTLSDir, dirName, DockerHost.CertificateFileNameKey); + let key; + let cert; + let ca; + if (dockerType === "tcp") { if (fs.existsSync(keyPath) && fs.existsSync(certPath)) { // Load the key and cert