From 926d740a8e634fa63806eded17e8a00852a678ad Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Mon, 20 Jul 2020 19:24:56 +0100 Subject: [PATCH] fix syntax of return with typecast --- src/ol/interaction/DragAndDrop.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ol/interaction/DragAndDrop.js b/src/ol/interaction/DragAndDrop.js index f3519db365..e1e839c308 100644 --- a/src/ol/interaction/DragAndDrop.js +++ b/src/ol/interaction/DragAndDrop.js @@ -218,9 +218,10 @@ class DragAndDrop extends Interaction { */ tryReadFeatures_(format, text, options) { try { - return - /** @type {Array} */ - (format.readFeatures(text, options)); + return ( + /** @type {Array} */ + (format.readFeatures(text, options)) + ); } catch (e) { return null; }