Skip to content

Commit

Permalink
Delete useless statement
Browse files Browse the repository at this point in the history
  • Loading branch information
danielqsj committed Aug 30, 2017
1 parent 2d6f811 commit 493aede
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 493aede

Please sign in to comment.