Match-id-39efc1cd62524bdcaf583b4fa326305b6e6953f2

This commit is contained in:
* 2022-03-01 15:53:12 +08:00 committed by *
parent 25fc359310
commit bb2b961b8c
2 changed files with 0 additions and 4 deletions

View File

@ -1,5 +1,4 @@
let dataArray = null; let dataArray = null;
let isWorking = false;
const log = (value) => { const log = (value) => {
if (dataArray === null) { if (dataArray === null) {
@ -19,9 +18,6 @@ const getAndClear = () => {
}; };
const clear = () => { const clear = () => {
if (isWorking) {
throw new Error('Cannot reset. There is a working task.');
}
dataArray = null; dataArray = null;
} }