micro refactor: save a line, narrow scope

This commit is contained in:
Matthias Radestock
2017-08-18 19:28:36 +01:00
parent 8fe3538443
commit 86292acf47
+1 -2
View File
@@ -95,8 +95,7 @@ func (m *Map) Render(rpt report.Report, dct Decorator) report.Nodes {
// Rewrite all the nodes according to the map function
for _, inRenderable := range input {
for _, outRenderable := range m.MapFunc(inRenderable, localNetworks) {
existing, ok := output[outRenderable.ID]
if ok {
if existing, ok := output[outRenderable.ID]; ok {
outRenderable = outRenderable.Merge(existing)
}