Skip to content

Commit

Permalink
return here
Browse files Browse the repository at this point in the history
  • Loading branch information
technicallyty committed Jan 10, 2025
1 parent 81491ee commit b0aff3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/v2/api/grpcgateway/interceptor.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func (g *gatewayInterceptor[T]) ServeHTTP(writer http.ResponseWriter, request *h
inputMsg, err = g.createMessageFromPostRequest(request.Context(), in, request, msg)

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

This definition of err is never used.
default:
runtime.DefaultHTTPProtoErrorHandler(request.Context(), g.gateway, out, writer, request, status.Error(codes.InvalidArgument, "HTTP method was not POST or GET"))
return
}

// get the height from the header.
Expand Down

0 comments on commit b0aff3e

Please sign in to comment.