synapsecns/sanguine

View on GitHub
services/rfq/api/rest/handler.go

Summary

Maintainability
A
1 hr
Test Coverage

Method Handler.ModifyQuote has 5 return statements (exceeds 4 allowed).
Open

func (h *Handler) ModifyQuote(c *gin.Context) {
    // Retrieve the request from context
    req, exists := c.Get("putRequest")
    if !exists {
        c.JSON(http.StatusBadRequest, gin.H{"error": "Request not found"})
Severity: Major
Found in services/rfq/api/rest/handler.go - About 35 mins to fix

    Method Handler.ModifyBulkQuotes has 5 return statements (exceeds 4 allowed).
    Open

    func (h *Handler) ModifyBulkQuotes(c *gin.Context) {
        // Retrieve the request from context
        req, exists := c.Get("putRequest")
        if !exists {
            c.JSON(http.StatusBadRequest, gin.H{"error": "Request not found"})
    Severity: Major
    Found in services/rfq/api/rest/handler.go - About 35 mins to fix

      Method Handler.GetQuotes has 5 return statements (exceeds 4 allowed).
      Open

      func (h *Handler) GetQuotes(c *gin.Context) {
          originChainIDStr := c.Query("originChainID")
          originTokenAddr := c.Query("originTokenAddr")
          destChainIDStr := c.Query("destChainId")
          destTokenAddr := c.Query("destTokenAddr")
      Severity: Major
      Found in services/rfq/api/rest/handler.go - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status