Explorar el Código

add missing error check

Johannes Brüderl hace 7 años
padre
commit
b4a8a4a8f6
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      metadata_response.go

+ 4 - 1
metadata_response.go

@@ -223,7 +223,10 @@ func (r *MetadataResponse) encode(pe packetEncoder) error {
 	}
 
 	if r.Version >= 2 {
-		pe.putNullableString(r.ClusterID)
+		err := pe.putNullableString(r.ClusterID)
+		if err != nil {
+			return err
+		}
 	}
 
 	if r.Version >= 1 {