- Linting (LGTM): Update to suppress current LGTM warning

master
Brett Zamir 2019-04-02 17:51:24 +08:00
parent 9bab917623
commit 0171e177cb
1 changed files with 2 additions and 2 deletions

View File

@ -44,9 +44,9 @@ function addCallback (t, {result, error, id: callbackID}) {
// These should be safe both because we check `cbid` is numeric and // These should be safe both because we check `cbid` is numeric and
// because the calls are from trusted origins // because the calls are from trusted origins
if (result) { if (result) {
t.callbacks[callbackID](result); // lgtm [js/remote-property-injection] t.callbacks[callbackID](result); // lgtm [js/unvalidated-dynamic-method-call]
} else { } else {
t.callbacks[callbackID](error, 'error'); // lgtm [js/remote-property-injection] t.callbacks[callbackID](error, 'error'); // lgtm [js/unvalidated-dynamic-method-call]
} }
} }
} }