10000 Fix CS · symfony-cli/symfony-cli@e1ba1a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit e1ba1a9

Browse files
committed
Fix CS
1 parent 2d7683e commit e1ba1a9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

envs/envs.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ func extractRelationshipsEnvs(env Environment) Envs {
223223
if !isMaster(endpoint) {
224224
continue
225225
}
226+
values[fmt.Sprintf("%sURL", prefix)] = fmt.Sprintf("%s://%s:%s@%s:%s/?authSource=%s", endpoint["scheme"].(string), endpoint["username"].(string), endpoint["password"].(string), endpoint["host"].(string), formatInt(endpoint["port"]), endpoint["path"].(string))
226227
values[fmt.Sprintf("%sSERVER", prefix)] = formatServer(endpoint)
227228
values[fmt.Sprintf("%sHOST", prefix)] = endpoint["host"].(string)
228229
values[fmt.Sprintf("%sPORT", prefix)] = formatInt(endpoint["port"])
@@ -233,14 +234,6 @@ func extractRelationshipsEnvs(env Environment) Envs {
233234
values[fmt.Sprintf("%sUSER", prefix)] = endpoint["username"].(string)
234235
values[fmt.Sprintf("%sUSERNAME", prefix)] = endpoint["username"].(string)
235236
values[fmt.Sprintf("%sPASSWORD", prefix)] = endpoint["password"].(string)
236-
values[fmt.Sprintf("%sURL", prefix)] = fmt.Sprintf(
237-
"%s://%s:%s@%s:%s/?authSource=%s",
238-
endpoint["scheme"].(string),
239-
endpoint["username"].(string),
240-
endpoint["password"].(string),
241-
endpoint["host"].(string),
242-
formatInt(endpoint["port"]),
243-
endpoint["path"].(string))
244237
} else if scheme == "amqp" {
245238
values[fmt.Sprintf("%sURL", prefix)] = fmt.Sprintf("%s://%s:%s@%s:%s", endpoint["scheme"].(string), endpoint["username"].(string), endpoint["password"].(string), endpoint["host"].(string), formatInt(endpoint["port"]))
246239
values[fmt.Sprintf("%sDSN", prefix)] = fmt.Sprintf("%s://%s:%s@%s:%s", endpoint["scheme"].(string), endpoint["username"].(string), endpoint["password"].(string), endpoint["host"].(string), formatInt(endpoint["port"]))

0 commit comments

Comments
 (0)
0