Skip to content

Commit fef4d89

Browse files
binlabmjuraga
authored andcommitted
CLEANUP/MINOR: setup: remove duplicate condition
1 parent 090577f commit fef4d89

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

configure_data_plane.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -123,14 +123,6 @@ func configureAPI(api *operations.DataPlaneAPI) http.Handler {
123123
haproxyOptions.MasterRuntime = strings.Replace(masterRuntime, "unix@", "", 1)
124124
}
125125
}
126-
// Override options with env variables
127-
if os.Getenv("HAPROXY_MWORKER") == "1" {
128-
mWorker = true
129-
masterRuntime := os.Getenv("HAPROXY_MASTER_CLI")
130-
if misc.IsUnixSocketAddr(masterRuntime) {
131-
haproxyOptions.MasterRuntime = strings.Replace(masterRuntime, "unix@", "", 1)
132-
}
133-
}
134126

135127
if cfgFiles := os.Getenv("HAPROXY_CFGFILES"); cfgFiles != "" {
136128
m := map[string]bool{"configuration": false}

0 commit comments

Comments
 (0)