Browse Source

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

Michael Herstine 8 years ago
parent
commit
d6b6145ea6
1 changed files with 1 additions and 1 deletions
  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))