Przeglądaj źródła

removed superfluous code

Eric 11 lat temu
rodzic
commit
d1ffb5d68a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      write.go

+ 1 - 1
write.go

@@ -16,7 +16,7 @@ func (r *Row) WriteStruct(e interface{}, cols int) int {
 	}
 
 	n := v.NumField() // number of fields in struct
-	if cols < n && cols > 0 {
+	if cols < n {
 		n = cols
 	}