Explorar el Código

simplifies assignment

Diego Alvarez hace 5 años
padre
commit
58a83f229d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      admin_test.go

+ 1 - 1
admin_test.go

@@ -172,7 +172,7 @@ func TestClusterAdminListTopics(t *testing.T) {
 	if found {
 		t.Fatal(errors.New("default topic config entry incorrectly found in response"))
 	}
-	value, _ := topic.ConfigEntries["retention.ms"]
+	value := topic.ConfigEntries["retention.ms"]
 	if value == nil || *value != "5000" {
 		t.Fatal(errors.New("non-default topic config entry not found in response"))
 	}