From d326898f7bfd15570e2acf7f4c80982615d060c5 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Thu, 14 Jan 2016 16:41:41 +0100 Subject: [PATCH 1/2] Remove unneeded brackets --- index/upside_down/row.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index/upside_down/row.go b/index/upside_down/row.go index e6663bf4..f3f79d5a 100644 --- a/index/upside_down/row.go +++ b/index/upside_down/row.go @@ -321,7 +321,7 @@ func NewDictionaryRowK(key []byte) (*DictionaryRow, error) { } func (dr *DictionaryRow) parseDictionaryV(value []byte) error { - buf := bytes.NewBuffer((value)) + buf := bytes.NewBuffer(value) count, err := binary.ReadUvarint(buf) if err != nil { From 329d8e00cd4bdb335864a1d7fcca1dc1ed4a7208 Mon Sep 17 00:00:00 2001 From: Silvan Jegen Date: Thu, 14 Jan 2016 16:42:01 +0100 Subject: [PATCH 2/2] Fix error string --- mapping_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapping_test.go b/mapping_test.go index 9cb34065..089ecc78 100644 --- a/mapping_test.go +++ b/mapping_test.go @@ -399,6 +399,6 @@ func TestMappingBool(t *testing.T) { t.Errorf("expected to find pointer to bool field named 'pprop'") } if count != 2 { - t.Errorf("expected to find 1 find, found %d", count) + t.Errorf("expected to find 2 fields, found %d", count) } }