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

View File

@@ -218,9 +218,10 @@ class DragAndDrop extends Interaction {
*/
tryReadFeatures_(format, text, options) {
try {
return
/** @type {Array<import("../Feature.js").default>} */
(format.readFeatures(text, options));
return (
/** @type {Array<import("../Feature.js").default>} */
(format.readFeatures(text, options))
);
} catch (e) {
return null;
}