mirror of
https://github.com/google/blockly.git
synced 2025-12-15 13:50:08 +01:00
refactor: Omit unused exception arguments from catch blocks (#8559)
Fixes #1770.
This commit is contained in:
committed by
GitHub
parent
724828f689
commit
2409123d66
@@ -6,6 +6,6 @@ var msg = 'Compiled Blockly files should be loaded from https://unpkg.com/blockl
|
|||||||
console.log(msg);
|
console.log(msg);
|
||||||
try {
|
try {
|
||||||
alert(msg);
|
alert(msg);
|
||||||
} catch (_e) {
|
} catch {
|
||||||
// Can't alert? Probably node.js.
|
// Can't alert? Probably node.js.
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -699,7 +699,7 @@ function buildAdvancedCompilationTest() {
|
|||||||
// a later browser-based test won't check it should the compile fail.
|
// a later browser-based test won't check it should the compile fail.
|
||||||
try {
|
try {
|
||||||
fs.unlinkSync('./tests/compile/main_compressed.js');
|
fs.unlinkSync('./tests/compile/main_compressed.js');
|
||||||
} catch (_e) {
|
} catch {
|
||||||
// Probably it didn't exist.
|
// Probably it didn't exist.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ window['healthCheck'] = function() {
|
|||||||
const blockCount =
|
const blockCount =
|
||||||
getMainWorkspace().getFlyout().getWorkspace().getTopBlocks().length;
|
getMainWorkspace().getFlyout().getWorkspace().getTopBlocks().length;
|
||||||
return (blockCount > 5 && blockCount < 100);
|
return (blockCount > 5 && blockCount < 100);
|
||||||
} catch (_e) {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user