fix syntax of return with typecast

This commit is contained in:
mike-000
2020-07-20 19:24:56 +01:00
committed by GitHub
parent f9f90ea766
commit 926d740a8e
+4 -3
View File
@@ -218,9 +218,10 @@ class DragAndDrop extends Interaction {
*/ */
tryReadFeatures_(format, text, options) { tryReadFeatures_(format, text, options) {
try { try {
return return (
/** @type {Array<import("../Feature.js").default>} */ /** @type {Array<import("../Feature.js").default>} */
(format.readFeatures(text, options)); (format.readFeatures(text, options))
);
} catch (e) { } catch (e) {
return null; return null;
} }