We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6b26cb commit da0ce74Copy full SHA for da0ce74
cmd/src/main.go
@@ -95,7 +95,7 @@ func readConfig() (*config, error) {
95
cfg.AccessToken = envToken
96
}
97
if *endpoint != "" {
98
- cfg.Endpoint = strings.TrimSuffix(*endpoint, "/")
+ cfg.Endpoint = *endpoint
99
100
if cfg.Endpoint == "" {
101
if endpoint := os.Getenv("SRC_ENDPOINT"); endpoint != "" {
@@ -105,5 +105,8 @@ func readConfig() (*config, error) {
105
106
cfg.Endpoint = "https://sourcegraph.com"
107
108
+
109
+ cfg.Endpoint = strings.TrimSuffix(cfg.Endpoint, "/")
110
111
return &cfg, nil
112
0 commit comments