improve conditional
This commit is contained in:
@@ -625,7 +625,7 @@ export class Buffer implements IBuffer {
|
||||
}
|
||||
|
||||
private _removeMarker(marker: Marker): void {
|
||||
if (this._isClearing !== BufferState.CLEARING) {
|
||||
if (!this._isClearing) {
|
||||
this.markers.splice(this.markers.indexOf(marker), 1);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user