mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
server, examples, extensions lint compliant (#1109)
these are all automated changes suggested by golint
This commit is contained in:
@@ -32,11 +32,11 @@ func (s *Server) handleFunctionCall(c *gin.Context) {
|
||||
func (s *Server) handleFunctionCall2(c *gin.Context) error {
|
||||
ctx := c.Request.Context()
|
||||
var p string
|
||||
r := ctx.Value(api.Path)
|
||||
if r == nil {
|
||||
r := PathFromContext(ctx)
|
||||
if r == "" {
|
||||
p = "/"
|
||||
} else {
|
||||
p = r.(string)
|
||||
p = r
|
||||
}
|
||||
|
||||
appID := c.MustGet(api.AppID).(string)
|
||||
|
||||
Reference in New Issue
Block a user