mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-30 10:14:03 +00:00
refactor: removed unnecessary todo comment, modified jsdoc of utility func (#5164)
This commit is contained in:
parent
eca90a2b00
commit
e8c650797c
3 changed files with 6 additions and 3 deletions
|
@ -87,7 +87,6 @@ class DingDing extends NotificationProvider {
|
||||||
* @returns {string} Status
|
* @returns {string} Status
|
||||||
*/
|
*/
|
||||||
statusToString(status) {
|
statusToString(status) {
|
||||||
// TODO: Move to notification-provider.js to avoid repetition in classes
|
|
||||||
switch (status) {
|
switch (status) {
|
||||||
case DOWN:
|
case DOWN:
|
||||||
return "DOWN";
|
return "DOWN";
|
||||||
|
|
|
@ -120,7 +120,11 @@ export const badgeConstants = {
|
||||||
defaultCertExpireDownDays: "7"
|
defaultCertExpireDownDays: "7"
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Flip the status of s */
|
/**
|
||||||
|
* Flip the status of s between UP and DOWN if this is possible
|
||||||
|
* @param s {number} status
|
||||||
|
* @returns {number} flipped status
|
||||||
|
*/
|
||||||
export function flipStatus(s: number) {
|
export function flipStatus(s: number) {
|
||||||
if (s === UP) {
|
if (s === UP) {
|
||||||
return DOWN;
|
return DOWN;
|
||||||
|
|
Loading…
Reference in a new issue