Skip to content

Commit

Permalink
Merge pull request #1272 from danielqsj/delete-useless-statement
Browse files Browse the repository at this point in the history
Delete useless statement
  • Loading branch information
aledbf authored Aug 30, 2017
2 parents eca88e4 + 493aede commit 58c94d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/nginx/pkg/template/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ func buildProxyPass(host string, b interface{}, loc interface{}) string {
return defProxyPass
}

if path != slash && !strings.HasSuffix(path, slash) {
if !strings.HasSuffix(path, slash) {
path = fmt.Sprintf("%s/", path)
}

Expand Down

0 comments on commit 58c94d4

Please sign in to comment.