chore: fix some minor issues in comments (#5984)
Some checks are pending
Auto Test / auto-test (18, ARM64) (push) Blocked by required conditions
Auto Test / auto-test (18, macos-latest) (push) Blocked by required conditions
Auto Test / auto-test (18, ubuntu-latest) (push) Blocked by required conditions
Auto Test / auto-test (18, windows-latest) (push) Blocked by required conditions
Auto Test / auto-test (20, ARM64) (push) Blocked by required conditions
Auto Test / auto-test (20, macos-latest) (push) Blocked by required conditions
Auto Test / auto-test (20, ubuntu-latest) (push) Blocked by required conditions
Auto Test / auto-test (20, windows-latest) (push) Blocked by required conditions
Auto Test / armv7-simple-test (18, ARMv7) (push) Waiting to run
Auto Test / armv7-simple-test (20, ARMv7) (push) Waiting to run
Auto Test / check-linters (push) Waiting to run
Auto Test / e2e-test (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Merge Conflict Labeler / Labeling (push) Waiting to run
validate / json-yaml-validate (push) Waiting to run
validate / validate (push) Waiting to run

Signed-off-by: yumeiyin <yin.yumei@qq.com>
This commit is contained in:
yumeiyin 2025-07-14 16:08:53 +08:00 committed by GitHub
parent 5bbbef5305
commit d490285a44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 5 deletions

View file

@ -1314,7 +1314,7 @@ class Monitor extends BeanModel {
/** /**
* Send a notification about a monitor * Send a notification about a monitor
* @param {boolean} isFirstBeat Is this beat the first of this monitor? * @param {boolean} isFirstBeat Is this beat the first of this monitor?
* @param {Monitor} monitor The monitor to send a notificaton about * @param {Monitor} monitor The monitor to send a notification about
* @param {Bean} bean Status information about monitor * @param {Bean} bean Status information about monitor
* @returns {void} * @returns {void}
*/ */

View file

@ -15,7 +15,7 @@ class PromoSMS extends NotificationProvider {
notification.promosmsAllowLongSMS = false; notification.promosmsAllowLongSMS = false;
} }
//TODO: Add option for enabling special characters. It will decrese message max length from 160 to 70 chars. //TODO: Add option for enabling special characters. It will decrease message max length from 160 to 70 chars.
//Lets remove non ascii char //Lets remove non ascii char
let cleanMsg = msg.replace(/[^\x00-\x7F]/g, ""); let cleanMsg = msg.replace(/[^\x00-\x7F]/g, "");

View file

@ -27,7 +27,7 @@ module.exports.apiKeySocketHandler = (socket) => {
log.debug("apikeys", "Added API Key"); log.debug("apikeys", "Added API Key");
log.debug("apikeys", key); log.debug("apikeys", key);
// Append key ID and prefix to start of key seperated by _, used to get // Append key ID and prefix to start of key separated by _, used to get
// correct hash when validating key. // correct hash when validating key.
let formattedKey = "uk" + bean.id + "_" + clearKey; let formattedKey = "uk" + bean.id + "_" + clearKey;
await sendAPIKeyList(socket); await sendAPIKeyList(socket);

View file

@ -582,7 +582,7 @@ class UptimeCalculator {
let totalPing = 0; let totalPing = 0;
let endTimestamp; let endTimestamp;
// Get the eariest timestamp of the required period based on the type // Get the earliest timestamp of the required period based on the type
switch (type) { switch (type) {
case "day": case "day":
endTimestamp = key - 86400 * (num - 1); endTimestamp = key - 86400 * (num - 1);
@ -710,7 +710,7 @@ class UptimeCalculator {
let endTimestamp; let endTimestamp;
// Get the eariest timestamp of the required period based on the type // Get the earliest timestamp of the required period based on the type
switch (type) { switch (type) {
case "day": case "day":
endTimestamp = key - 86400 * (num - 1); endTimestamp = key - 86400 * (num - 1);