chore: add new lint rules

This commit is contained in:
Gusted 2024-10-23 08:10:18 +02:00
parent 1ec3e638a5
commit f63f02045e
No known key found for this signature in database
GPG key ID: FD821B732837125F
5 changed files with 8 additions and 5 deletions

View file

@ -28,7 +28,7 @@ class Source {
deregister(port) {
const portIdx = this.clients.indexOf(port);
if (portIdx < 0) {
if (portIdx === -1) {
return this.clients.length;
}
this.clients.splice(portIdx, 1);