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