Skip to content

Commit

Permalink
fix err
Browse files Browse the repository at this point in the history
  • Loading branch information
YuanhuanO committed Oct 3, 2024
1 parent 7e30bbe commit f59ebe8
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions daisen/componentinfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -551,19 +551,8 @@ func parseRequestParameters(
compID = r.FormValue("id")
compWhat = r.FormValue("what")

startTimeStr := r.FormValue("start_time")
startTime, err = strconv.ParseFloat(startTimeStr, 64)
if err != nil {
err = errors.New("Invalid start_time: " + err.Error())
return
}

endTimeStr := r.FormValue("end_time")
endTime, err = strconv.ParseFloat(endTimeStr, 64)
if err != nil {
err = errors.New("Invalid end_time: " + err.Error())
return
}
startTime, startErr = strconv.ParseFloat(r.FormValue("start_time"), 64)

Check failure on line 554 in daisen/componentinfo.go

View workflow job for this annotation

GitHub Actions / Akita Compilation

undefined: startErr
endTime, endErr = strconv.ParseFloat(r.FormValue("end_time"), 64)

Check failure on line 555 in daisen/componentinfo.go

View workflow job for this annotation

GitHub Actions / Akita Compilation

undefined: endErr

return
}
Expand Down

0 comments on commit f59ebe8

Please sign in to comment.