mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
lint fixes
This commit is contained in:
parent
e5477fba0d
commit
b40dbf7db7
2 changed files with 11 additions and 12 deletions
|
@ -1,5 +1,5 @@
|
||||||
const { MonitorType } = require("./monitor-type");
|
const { MonitorType } = require("./monitor-type");
|
||||||
const { UP, log } = require("../../src/util");
|
const { UP } = require("../../src/util");
|
||||||
const { exec } = require("promisify-child-process");
|
const { exec } = require("promisify-child-process");
|
||||||
|
|
||||||
class SIPMonitorType extends MonitorType {
|
class SIPMonitorType extends MonitorType {
|
||||||
|
@ -10,7 +10,7 @@ class SIPMonitorType extends MonitorType {
|
||||||
* Run the monitoring check on the given monitor
|
* Run the monitoring check on the given monitor
|
||||||
* @param {Monitor} monitor Monitor to check
|
* @param {Monitor} monitor Monitor to check
|
||||||
* @param {Heartbeat} heartbeat Monitor heartbeat to update
|
* @param {Heartbeat} heartbeat Monitor heartbeat to update
|
||||||
* @param {UptimeKumaServer} server Uptime Kuma server
|
* @param {UptimeKumaServer} _server Uptime Kuma server
|
||||||
* @returns {Promise<void>}
|
* @returns {Promise<void>}
|
||||||
* @throws Will throw an error if the command execution encounters any error.
|
* @throws Will throw an error if the command execution encounters any error.
|
||||||
*/
|
*/
|
||||||
|
@ -44,10 +44,9 @@ class SIPMonitorType extends MonitorType {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* @param {string} res response to be parsed
|
||||||
* @param {string} res
|
* @param {object} heartbeat heartbeat object to update
|
||||||
* @param {object} heartbeat
|
* @returns {void} returns nothing
|
||||||
* @returns {void}
|
|
||||||
*/
|
*/
|
||||||
parseSipsakResponse(res, heartbeat) {
|
parseSipsakResponse(res, heartbeat) {
|
||||||
let lines = res.split("\n");
|
let lines = res.split("\n");
|
||||||
|
|
Loading…
Reference in a new issue