mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-01 19:16:23 -04:00
[eslint] Enable yoda and eqeqeq
This commit is contained in:
parent
d71c086447
commit
47c72192e1
19 changed files with 41 additions and 39 deletions
|
@ -49,8 +49,8 @@ class Prometheus {
|
|||
|
||||
if (typeof tlsInfo !== "undefined") {
|
||||
try {
|
||||
let isValid = 0;
|
||||
if (tlsInfo.valid == true) {
|
||||
let isValid;
|
||||
if (tlsInfo.valid === true) {
|
||||
isValid = 1;
|
||||
} else {
|
||||
isValid = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue