remove redundant check

Co-Authored-By: Karishma Chadha <kchadha@media.mit.edu>
This commit is contained in:
Chris Willis-Ford 2019-06-17 13:22:52 -07:00 committed by GitHub
parent 33a6071466
commit 18b1551cdb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1234,7 +1234,7 @@ class Runtime extends EventEmitter {
let shadowType; let shadowType;
let fieldName; let fieldName;
if (argInfo.menu) { if (argInfo.menu) {
const menuInfo = argInfo.menu && context.categoryInfo.menuInfo[argInfo.menu]; const menuInfo = context.categoryInfo.menuInfo[argInfo.menu];
if (menuInfo.acceptReporters) { if (menuInfo.acceptReporters) {
valueName = placeholder; valueName = placeholder;
shadowType = this._makeExtensionMenuId(argInfo.menu, context.categoryInfo.id); shadowType = this._makeExtensionMenuId(argInfo.menu, context.categoryInfo.id);