2
0

Simplify map composite literals as gofmt -s handles

This commit is contained in:
ferhat elmas
2016-11-09 00:50:33 +01:00
parent 2a0504599e
commit 84439a13cb
3 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -230,7 +230,7 @@ func (c *Conn) queryPrepared(name string, argsV []driver.Value) (driver.Rows, er
// text format so that pgx.Rows.Values doesn't decode it into a native type
// (e.g. []int32)
func restrictBinaryToDatabaseSqlTypes(ps *pgx.PreparedStatement) {
for i, _ := range ps.FieldDescriptions {
for i := range ps.FieldDescriptions {
intrinsic, _ := databaseSqlOids[ps.FieldDescriptions[i].DataType]
if !intrinsic {
ps.FieldDescriptions[i].FormatCode = pgx.TextFormatCode