Skip to content

Commit 8d5999c

Browse files
committed
simplify code
1 parent aa3ef4e commit 8d5999c

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

coderd/workspaceapps/apptest/setup.go

-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ func (d *Details) SubdomainAppURL(app App) *url.URL {
156156
AgentName: app.AgentName,
157157
WorkspaceName: app.WorkspaceName,
158158
Username: app.Username,
159-
HTTPS: app.HTTPS,
160159
}
161160
u := *d.PathAppBaseURL
162161
u.Host = strings.Replace(d.Options.AppHost, "*", appHost.String(), 1)

coderd/workspaceapps/appurl/appurl.go

-4
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ type ApplicationURL struct {
5858
AgentName string
5959
WorkspaceName string
6060
Username string
61-
HTTPS bool
6261
}
6362

6463
// String returns the application URL hostname without scheme. You will likely
@@ -67,9 +66,6 @@ func (a ApplicationURL) String() string {
6766
var appURL strings.Builder
6867
_, _ = appURL.WriteString(a.Prefix)
6968
_, _ = appURL.WriteString(a.AppSlugOrPort)
70-
if a.HTTPS {
71-
_, _ = appURL.WriteString("s")
72-
}
7369
_, _ = appURL.WriteString("--")
7470
_, _ = appURL.WriteString(a.AgentName)
7571
_, _ = appURL.WriteString("--")

0 commit comments

Comments
 (0)