Skip to content

Commit

Permalink
handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
jackrobison committed Sep 15, 2021
1 parent 7c9d773 commit fc57c17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion server/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ func RoundUpReleaseTime(q *elastic.BoolQuery, rq *pb.RangeField, name string) *e
if rq == nil {
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 {
releaseTimeInt *= - 1
}
Expand Down

0 comments on commit fc57c17

Please sign in to comment.