Skip to content

Commit

Permalink
correct bug
Browse files Browse the repository at this point in the history
Signed-off-by: Ricardo Mateus <[email protected]>
  • Loading branch information
rjmateus committed Mar 24, 2021
1 parent 51fd58a commit 46f101f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions processor/CommandManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ type ToolsCommandManager struct {
func (manager *ToolsCommandManager) populateExecMap() {
commandsMap := make(map[string]*ToolCmd)
for _, group := range manager.groups {
for _, tool := range group.tools {
commandsMap[tool.getId()] = &tool
for i, _ := range group.tools {
toolPointer := group.tools[i]
commandsMap[toolPointer.getId()] = &toolPointer
}
}
manager.toolsCommands = commandsMap
Expand Down

0 comments on commit 46f101f

Please sign in to comment.