During work, I stumbled upon this line inside our codebase (designed to run in the browser). Is there any effect in this line? It seems unnecessary to me, but before removing it, I want to be absolutely sure that I am not overlooking some quirky promise special behaviour that this line does.
// Chain the finishPromise to our global finish chain.
this.finishPromise = this.finishPromise.then();
Next to that line, it is awaited some times, is initialized as Promise.resolve(), and never else overwritten as far as I can see.