Explorar o código

add missing error check

Johannes Brüderl %!s(int64=7) %!d(string=hai) anos
pai
achega
b4a8a4a8f6
Modificáronse 1 ficheiros con 4 adicións e 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 {