Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ffc3877

Browse files
committed
Fix lint
1 parent 6ce0dec commit ffc3877

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

enterprise/cli/workspaceproxy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (r *RootCmd) proxyServer() *clibase.Cmd {
258258
),
259259
Handler: func(inv *clibase.Invocation) error {
260260
if !(primaryAccessURL.Scheme == "http" || primaryAccessURL.Scheme == "https") {
261-
return xerrors.Errorf("primary access URL must be http or https: url=%s", primaryAccessURL)
261+
return xerrors.Errorf("primary access URL must be http or https: url=%s", primaryAccessURL.String())
262262
}
263263

264264
secKey, err := workspaceapps.KeyFromString(appSecuritYKey.Value())

scripts/develop.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ fatal() {
183183
log "Using external workspace proxy"
184184
(
185185
# Attempt to delete the proxy first, in case it already exists.
186-
"${CODER_DEV_SHIM}" proxy delete name=local-proxy
186+
"${CODER_DEV_SHIM}" proxy delete name=local-proxy || true
187187
# Create the proxy
188188
proxy_session_token=$("${CODER_DEV_SHIM}" proxy register --name=local-proxy --display-name="Local Proxy" --icon="/emojis/1f4bb.png" --access-url=http://localhost:3010 --only-token)
189189
# Start the proxy

0 commit comments

Comments
 (0)