chore: add new lint rules
This commit is contained in:
parent
1ec3e638a5
commit
f63f02045e
5 changed files with 8 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue