- Linting (LGTM): Mark remote property injection in embedapi as safe

master
Brett Zamir 2018-09-24 20:08:49 +08:00
parent 23e982e403
commit 25ed8ad465
1 changed files with 2 additions and 2 deletions

View File

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