From 969c70342ae4e47893226d47865abc6fc5a3cc2f Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 10 Mar 2015 14:37:27 -0700 Subject: [PATCH] Fix whitespace in parser/parser.go Change-Id: I75875cbf60efc9aaf7c2df5709533c2c04b6fba4 --- parser/parser.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/parser/parser.go b/parser/parser.go index 1716e03..0031547 100644 --- a/parser/parser.go +++ b/parser/parser.go @@ -321,11 +321,11 @@ func evaluateOperator(value1, value2 Value, operator rune, pos scanner.Position) func addMaps(map1, map2 []*Property, pos scanner.Position) ([]*Property, error) { ret := make([]*Property, 0, len(map1)) - + inMap1 := make(map[string]*Property) inMap2 := make(map[string]*Property) inBoth := make(map[string]*Property) - + for _, prop1 := range map1 { inMap1[prop1.Name.Name] = prop1 } @@ -336,7 +336,7 @@ func addMaps(map1, map2 []*Property, pos scanner.Position) ([]*Property, error) inBoth[prop2.Name.Name] = prop2 } } - + for _, prop1 := range map1 { if prop2, ok := inBoth[prop1.Name.Name]; ok { var err error @@ -356,7 +356,7 @@ func addMaps(map1, map2 []*Property, pos scanner.Position) ([]*Property, error) ret = append(ret, prop2) } } - + return ret, nil }