handle error

This commit is contained in:
Jack Robison 2021-09-15 13:25:19 -04:00
parent 7c9d773ff0
commit fc57c177e2
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -129,7 +129,10 @@ func RoundUpReleaseTime(q *elastic.BoolQuery, rq *pb.RangeField, name string) *e
if rq == nil { if rq == nil {
return q return q
} }
releaseTimeInt, _ := strconv.ParseInt(rq.Value[0], 10, 32) releaseTimeInt, err := strconv.ParseInt(rq.Value[0], 10, 32)
if err != nil {
return q
}
if releaseTimeInt < 0 { if releaseTimeInt < 0 {
releaseTimeInt *= - 1 releaseTimeInt *= - 1
} }