mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 09:48:00 +01:00
remove redundant throwing of StopIteration from generators
This commit is contained in:
@@ -188,8 +188,6 @@ liberator.Commands = function () //{{{
|
||||
var sorted = exCommands.sort(function (cmd1, cmd2) { return cmd1.name > cmd2.name; });
|
||||
for (var i = 0; i < sorted.length; i++)
|
||||
yield sorted[i];
|
||||
|
||||
throw StopIteration;
|
||||
},
|
||||
|
||||
add: function (names, description, action, extra)
|
||||
|
||||
@@ -39,7 +39,6 @@ liberator.AutoCommands = function () //{{{
|
||||
for (var item in autoCommands)
|
||||
for (var i = 0; i < autoCommands[item].length; i++)
|
||||
yield item + " " + autoCommands[item][i][0] + " " + autoCommands[item][i][1];
|
||||
throw StopIteration;
|
||||
}
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////}}}
|
||||
|
||||
@@ -160,7 +160,6 @@ liberator.Mappings = function () //{{{
|
||||
if (output)
|
||||
yield maps[i];
|
||||
}
|
||||
throw StopIteration;
|
||||
}
|
||||
|
||||
function addMapCommands(ch, modes, modeDescription)
|
||||
|
||||
@@ -189,8 +189,6 @@ liberator.modes = (function () //{{{
|
||||
|
||||
for (var i = 0; i < modes.length; i++)
|
||||
yield modes[i];
|
||||
|
||||
throw StopIteration;
|
||||
},
|
||||
|
||||
get all() { return [this.NONE, this.NORMAL, this.INSERT, this.VISUAL,
|
||||
|
||||
Reference in New Issue
Block a user