pkg/tsdb: fix ineffassign isues

This commit is contained in:
Mario Trangoni
2018-04-22 20:51:58 +02:00
parent 6b5854936d
commit 556219b192
4 changed files with 10 additions and 4 deletions

View File

@@ -271,7 +271,7 @@ func parseQuery(model *simplejson.Json) (*CloudWatchQuery, error) {
}
}
period := 300
var period int
if regexp.MustCompile(`^\d+$`).Match([]byte(p)) {
period, err = strconv.Atoi(p)
if err != nil {