From 0171e177cb689fe343a74d1edf12d29c7d40ec79 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Tue, 2 Apr 2019 17:51:24 +0800 Subject: [PATCH] - Linting (LGTM): Update to suppress current LGTM warning --- editor/embedapi.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/embedapi.js b/editor/embedapi.js index 4dd36abe..cfec6270 100644 --- a/editor/embedapi.js +++ b/editor/embedapi.js @@ -44,9 +44,9 @@ function addCallback (t, {result, error, id: callbackID}) { // These should be safe both because we check `cbid` is numeric and // because the calls are from trusted origins if (result) { - t.callbacks[callbackID](result); // lgtm [js/remote-property-injection] + t.callbacks[callbackID](result); // lgtm [js/unvalidated-dynamic-method-call] } else { - t.callbacks[callbackID](error, 'error'); // lgtm [js/remote-property-injection] + t.callbacks[callbackID](error, 'error'); // lgtm [js/unvalidated-dynamic-method-call] } } }