Match-id-39efc1cd62524bdcaf583b4fa326305b6e6953f2
This commit is contained in:
parent
25fc359310
commit
bb2b961b8c
|
@ -1,5 +1,4 @@
|
|||
let dataArray = null;
|
||||
let isWorking = false;
|
||||
|
||||
const log = (value) => {
|
||||
if (dataArray === null) {
|
||||
|
@ -19,9 +18,6 @@ const getAndClear = () => {
|
|||
};
|
||||
|
||||
const clear = () => {
|
||||
if (isWorking) {
|
||||
throw new Error('Cannot reset. There is a working task.');
|
||||
}
|
||||
dataArray = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue