2
0
Cleanups suggested by gometalinter tools.
This commit is contained in:
Martin Hamrle
2016-08-30 19:59:16 +02:00
parent 2508faa9ce
commit 9f6b99e332
14 changed files with 84 additions and 90 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ func init() {
placeholders = make([]string, 64)
for i := 1; i < 64; i++ {
placeholders[i] = "$" + strconv.FormatInt(int64(i), 10)
placeholders[i] = "$" + strconv.Itoa(i)
}
}
@@ -25,5 +25,5 @@ func (qa *QueryArgs) Append(v interface{}) string {
if len(*qa) < len(placeholders) {
return placeholders[len(*qa)]
}
return "$" + strconv.FormatInt(int64(len(*qa)), 10)
return "$" + strconv.Itoa(len(*qa))
}