From cc2e99dd3b515f99c0bfc4894b6bc51c72ef1ebf Mon Sep 17 00:00:00 2001 From: Leigh MacDonald Date: Sun, 24 Mar 2024 16:48:37 -0600 Subject: [PATCH] Update naming --- tf2bdd/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tf2bdd/config.go b/tf2bdd/config.go index b558829..c0279fc 100644 --- a/tf2bdd/config.go +++ b/tf2bdd/config.go @@ -33,16 +33,16 @@ func (config Config) ListenAddr() string { } func (config Config) UpdateURL() (string, error) { - extUrl := config.ExternalURL - if extUrl == "" { + extURL := config.ExternalURL + if extURL == "" { host := config.ListenHost if host == "" { host = "localhost" } - extUrl = fmt.Sprintf("http://%s", net.JoinHostPort(host, fmt.Sprintf("%d", config.ListenPort))) + extURL = fmt.Sprintf("http://%s", net.JoinHostPort(host, fmt.Sprintf("%d", config.ListenPort))) } - parsed, errParse := url.Parse(extUrl) + parsed, errParse := url.Parse(extURL) if errParse != nil { return "", errParse }