refactor: remove redundant error in catch (#25478)

PR Close #25478
This commit is contained in:
Alan Agius
2018-08-14 15:34:51 +02:00
committed by Kara Erickson
parent 929334b0bf
commit b61dafaeac
15 changed files with 28 additions and 28 deletions

View File

@ -133,7 +133,7 @@ function initWebWorkerRenderPlatform(injector: Injector): () => void {
let scriptUri: string;
try {
scriptUri = injector.get(WORKER_SCRIPT);
} catch (e) {
} catch {
throw new Error(
'You must provide your WebWorker\'s initialization script with the WORKER_SCRIPT token');
}