mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 13:47:59 +01:00
Remove residual try-catch.
This commit is contained in:
@@ -558,17 +558,9 @@ const Options = Module("options", {
|
|||||||
return (this._optionHash[name].scope & scope) && this._optionHash[name];
|
return (this._optionHash[name].scope & scope) && this._optionHash[name];
|
||||||
|
|
||||||
for (let opt in Iterator(options)) {
|
for (let opt in Iterator(options)) {
|
||||||
try {
|
|
||||||
if (opt.hasName(name))
|
if (opt.hasName(name))
|
||||||
return (opt.scope & scope) && opt;
|
return (opt.scope & scope) && opt;
|
||||||
}
|
}
|
||||||
catch(e) {
|
|
||||||
liberator.dump(options.__iterator__);
|
|
||||||
liberator.dump(opt);
|
|
||||||
liberator.reportError(e);
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user