Преглед изворни кода

Changing if condition from C-style in response to PR feedback.

Michael Herstine пре 8 година
родитељ
комит
d6b6145ea6
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      fetch_request.go

+ 1 - 1
fetch_request.go

@@ -36,7 +36,7 @@ func (r *FetchRequest) encode(pe packetEncoder) (err error) {
 	pe.putInt32(-1) // replica ID is always -1 for clients
 	pe.putInt32(r.MaxWaitTime)
 	pe.putInt32(r.MinBytes)
-	if 3 == r.Version {
+	if r.Version == 3 {
 		pe.putInt32(r.MaxBytes)
 	}
 	err = pe.putArrayLength(len(r.blocks))