ravivooda / stocks

1 stars 0 forks source link

Handle error gracefully for query lookup in overlaps #77

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

https://github.com/ravivooda/stocks/blob/dec24de6fc0b919580a574dbfd5dc2375e53269f/website/overlap.go#L34


}

func (s *server) fetchOverlapParam(c *gin.Context) (string, []string) {
    // TODO: Handle error gracefully for query lookup in overlaps
    lhs, _ := c.GetQuery(overlapKeyLHS)
    rhs, _ := c.GetQuery(overlapKeyRHS)
    return lhs, strings.Split(rhs, sep)
}