code refactoring

This commit is contained in:
2022-08-28 18:42:32 +02:00
parent 5d51309ef3
commit 32bc925fb7

View File

@@ -39,6 +39,7 @@ class MemoryDB {
* @param {Process} process * @param {Process} process
*/ */
remove(process: Process) { remove(process: Process) {
if (this._size === 0) return
this._pool.delete(process.getPid()) this._pool.delete(process.getPid())
this._size-- this._size--
} }