Skip to content

Commit

Permalink
fn: fix precedence of path choice during route creation (#427)
Browse files Browse the repository at this point in the history
Fixes #413
  • Loading branch information
ccirello authored Dec 13, 2016
1 parent 2af84c7 commit c37c754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fn/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ func (a *routesCmd) create(c *cli.Context) error {
if ff.Timeout != nil {
timeout = *ff.Timeout
}
if ff.Path != nil {
if route == "" && ff.Path != nil {
route = *ff.Path
}
}
Expand Down

0 comments on commit c37c754

Please sign in to comment.