From 387fe1183651591f0293036b90f2f4c7612c0ed1 Mon Sep 17 00:00:00 2001
From: Pawan Rawal <pawan0201@gmail.com>
Date: Tue, 3 May 2016 12:45:42 +0530
Subject: [PATCH] removing redundant string casting in tests

---
 query/query_test.go | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/query/query_test.go b/query/query_test.go
index 50e4373a..2288e2c3 100644
--- a/query/query_test.go
+++ b/query/query_test.go
@@ -378,9 +378,9 @@ func TestToProtocolBuffer(t *testing.T) {
 		t.Errorf("Expected values map to contain 3 properties, Got: %v",
 			len(gr.Properties))
 	}
-	if string(gr.Properties["name"].Str) != "Michonne" {
+	if gr.Properties["name"].Str != "Michonne" {
 		t.Errorf("Expected property name to have value Michonne, Got: %v",
-			string(gr.Properties["name"].Str))
+			gr.Properties["name"].Str)
 	}
 	if len(gr.Children) != 10 {
 		t.Errorf("Expected 10 children, Got: %v", len(gr.Children))
@@ -397,9 +397,9 @@ func TestToProtocolBuffer(t *testing.T) {
 		t.Errorf("Expected values map to contain 1 property, Got: %v",
 			len(child.Properties))
 	}
-	if string(child.Properties["name"].Str) != "Rick Grimes" {
+	if child.Properties["name"].Str != "Rick Grimes" {
 		t.Errorf("Expected property name to have value Rick Grimes, Got: %v",
-			string(child.Properties["name"].Str))
+			child.Properties["name"].Str)
 	}
 	if len(child.Children) != 0 {
 		t.Errorf("Expected 0 children, Got: %v", len(child.Children))
-- 
GitLab