浏览代码

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))