mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-31 07:09:58 +02:00
Merge pull request #550 from grocky/fix-#541
Refactor show commands to extract keys from the object
This commit is contained in:
commit
1471f08c99
1 changed files with 4 additions and 3 deletions
|
@ -97,9 +97,10 @@ var instantCommands = [
|
|||
intl.str('show-all-commands'),
|
||||
'<br/>'
|
||||
];
|
||||
allCommands.forEach(function(regex, command) {
|
||||
lines.push(command);
|
||||
});
|
||||
Object.keys(allCommands)
|
||||
.forEach(function(command) {
|
||||
lines.push(command);
|
||||
});
|
||||
|
||||
throw new CommandResult({
|
||||
msg: lines.join('\n')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue