mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-25 05:34:08 -08:00
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:
parent
495bf51ac8
commit
f65453e50c
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue