Skip to content

Commit

Permalink
AWS Lambda: Fix linting issues
Browse files Browse the repository at this point in the history
Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org>
  • Loading branch information
bramwelt committed May 1, 2024
1 parent 506e82a commit 9b3012b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion pkg/middlewares/awslambda/aws_lambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,6 @@ func bodyToBase64(req *http.Request) (bool, string, error) {
}

func (a *awsLambda) invokeFunction(ctx context.Context, request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error) {

payload, err := json.Marshal(request)
if err != nil {
return nil, fmt.Errorf("failed to marshal request: %w", err)
Expand Down
1 change: 0 additions & 1 deletion pkg/middlewares/awslambda/aws_lambda_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import (
func setup(t *testing.T, response string) (*httptest.Server, http.Handler, *http.Request) {
t.Helper()
mockserver := httptest.NewServer(http.HandlerFunc(func(res http.ResponseWriter, req *http.Request) {

var buf bytes.Buffer
_, err := io.Copy(&buf, req.Body)
if err != nil {
Expand Down

0 comments on commit 9b3012b

Please sign in to comment.