manirajv06 commented on code in PR #721:
URL: https://github.com/apache/yunikorn-core/pull/721#discussion_r1399292094


##########
pkg/webservice/handlers.go:
##########
@@ -914,29 +914,25 @@ func getEvents(w http.ResponseWriter, r *http.Request) {
        var start uint64
 
        if countStr := r.URL.Query().Get("count"); countStr != "" {
-               c, err := strconv.ParseInt(countStr, 10, 64)
+               c, err := strconv.ParseUint(countStr, 10, 64)

Review Comment:
   Can we assign it to `count` directly? Similarly for  `start` as well.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to