mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-04 08:25:57 +00:00
tls: server: Minor code style changes
This commit is contained in:
parent
7dcbd21454
commit
58f45135b3
1 changed files with 19 additions and 20 deletions
|
@ -4,7 +4,6 @@ const net = require("net");
|
||||||
const tls = require("tls");
|
const tls = require("tls");
|
||||||
|
|
||||||
class TlsMonitorType extends MonitorType {
|
class TlsMonitorType extends MonitorType {
|
||||||
|
|
||||||
name = "port-tls";
|
name = "port-tls";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -66,7 +65,8 @@ class TlsMonitorType extends MonitorType {
|
||||||
if (response instanceof Error) {
|
if (response instanceof Error) {
|
||||||
this.log("check failed: " + response.message);
|
this.log("check failed: " + response.message);
|
||||||
throw response;
|
throw response;
|
||||||
} else {
|
}
|
||||||
|
|
||||||
let success = false;
|
let success = false;
|
||||||
let message = undefined;
|
let message = undefined;
|
||||||
if (monitor.keyword) {
|
if (monitor.keyword) {
|
||||||
|
@ -87,7 +87,6 @@ class TlsMonitorType extends MonitorType {
|
||||||
throw new Error(message);
|
throw new Error(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sends the request over the given TLS socket and returns the response.
|
* Sends the request over the given TLS socket and returns the response.
|
||||||
|
|
Loading…
Add table
Reference in a new issue