You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2024/07/25 02:13:39 UTC

(incubator-answer) branch dev updated: refactor(conf): go fmt conf.go

This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git


The following commit(s) were added to refs/heads/dev by this push:
     new 2a2ab45c refactor(conf): go fmt conf.go
2a2ab45c is described below

commit 2a2ab45c4b9c57dcdb1371a762be0290c4e0a572
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Thu Jul 25 10:13:30 2024 +0800

    refactor(conf): go fmt conf.go
---
 internal/base/conf/conf.go | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/internal/base/conf/conf.go b/internal/base/conf/conf.go
index 4593f40f..4926c16d 100644
--- a/internal/base/conf/conf.go
+++ b/internal/base/conf/conf.go
@@ -47,17 +47,16 @@ type AllConfig struct {
 }
 
 type envConfigOverrides struct {
-	SwaggerHost         string
+	SwaggerHost        string
 	SwaggerAddressPort string
-
-	SiteAddr string
+	SiteAddr           string
 }
 
 func loadEnvs() (envOverrides *envConfigOverrides) {
 	return &envConfigOverrides{
-		SwaggerHost:         os.Getenv("SWAGGER_HOST"),
-		SwaggerAddressPort:  os.Getenv("SWAGGER_ADDRESS_PORT"),
-		SiteAddr:            os.Getenv("SITE_ADDR"),
+		SwaggerHost:        os.Getenv("SWAGGER_HOST"),
+		SwaggerAddressPort: os.Getenv("SWAGGER_ADDRESS_PORT"),
+		SiteAddr:           os.Getenv("SITE_ADDR"),
 	}
 }