Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Julio Guerra <julio@datadog.com>
  • Loading branch information
Hellzy and Julio-Guerra committed Feb 25, 2022
1 parent 7b84781 commit 57f8147
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions appsec/example_test.go
Expand Up @@ -10,11 +10,11 @@ import (
"io"
"net/http"

"github.com/labstack/echo/v4"

"gopkg.in/DataDog/dd-trace-go.v1/appsec"
echotrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/labstack/echo.v4"
httptrace "gopkg.in/DataDog/dd-trace-go.v1/contrib/net/http"

"github.com/labstack/echo/v4"
)

type parsedBodyType struct {
Expand All @@ -24,7 +24,6 @@ type parsedBodyType struct {
func customBodyParser(body io.ReadCloser) (*parsedBodyType, error) {
var parsedBody parsedBodyType
err := json.NewDecoder(body).Decode(&parsedBody)

return &parsedBody, err
}

Expand Down

0 comments on commit 57f8147

Please sign in to comment.