Chore: code is modifying constant object in store.ts (#81)

This commit is contained in:
WANGSHIFU 2021-09-21 04:12:21 +00:00 committed by GitHub
parent 5808bce621
commit 34eaf5b6bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ class Store {
if (!this.saveDisconnection) { if (!this.saveDisconnection) {
this.connections.delete(id) this.connections.delete(id)
} else { } else {
const connection = this.connections.get(id) let connection = this.connections.get(id)
if (connection != null) { if (connection != null) {
connection.completed = true connection.completed = true
connection.uploadSpeed = 0 connection.uploadSpeed = 0