Fixed some golint warnings

This commit is contained in:
2016-03-29 03:09:03 +03:00
parent 945e044bbf
commit 3e3f9dd908
2 changed files with 2 additions and 2 deletions

View File

@@ -209,7 +209,7 @@ func GetStatTimesFromDb(db *sql.DB, fromTime int64, keyMap map[uint8]string) []S
keyNums := GetKeyNumsFromKeyMap(keyMap)
// result
res := make([]StatForTime, 0)
var res []StatForTime
for rows.Next() {
err = rows.Scan(dest...)
if err != nil {

View File

@@ -9,7 +9,7 @@ import (
)
func GenerateRandStatsForTime(N int) []StatForTime {
data := make([]StatForTime, 0)
data := make([]StatForTime, N)
keyMap := GetKeymap()
rnd := rand.New(rand.NewSource(42))
for i := 0; i < N; i++ {