mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 16:35:57 +00:00
tls: server: Remove unnecessary function
This commit is contained in:
parent
58f45135b3
commit
7ea6d9c293
1 changed files with 1 additions and 5 deletions
|
@ -226,14 +226,10 @@ class TlsMonitorType extends MonitorType {
|
||||||
resolve(tlsSocket);
|
resolve(tlsSocket);
|
||||||
};
|
};
|
||||||
|
|
||||||
const onError = (error) => {
|
|
||||||
reject(error);
|
|
||||||
};
|
|
||||||
|
|
||||||
const tlsSocket = tls.connect({ socket: socket });
|
const tlsSocket = tls.connect({ socket: socket });
|
||||||
|
|
||||||
tlsSocket.on("secureConnect", onSecureConnect);
|
tlsSocket.on("secureConnect", onSecureConnect);
|
||||||
tlsSocket.on("error", onError);
|
tlsSocket.on("error", reject);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue