From b369aac7b8bfdab245b47596e484b8459e5f00b5 Mon Sep 17 00:00:00 2001 From: ntsd Date: Sat, 21 Nov 2026 18:52:04 +0700 Subject: [PATCH] refactor(server): remove dead ProductionEnvironment constant Task: zf-z-74d33f39 refactor(server): remove dead ProductionEnvironment constant (Ponytail Rung 1) --- server/pkg/config/config.go | 2 -- server/pkg/config/config_test.go | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/server/pkg/config/config.go b/server/pkg/config/config.go index c814928..3a1ffc0 100644 --- a/server/pkg/config/config.go +++ b/server/pkg/config/config.go @@ -14,8 +14,6 @@ type Environment string const ( // DevelopEnvironment is the development environment. DevelopEnvironment Environment = "dev" - // ProductionEnvironment is the production environment. - ProductionEnvironment Environment = "prod" ) // Config represents configurations. diff --git a/server/pkg/config/config_test.go b/server/pkg/config/config_test.go index 8569d8b..2e6d14e 100644 --- a/server/pkg/config/config_test.go +++ b/server/pkg/config/config_test.go @@ -75,7 +75,7 @@ func TestLoadConfigEnvOverrides(t *testing.T) { } want := AppConfig{ - Environment: ProductionEnvironment, + Environment: Environment("prod"), Host: "127.0.0.1", Port: "9091", ClientSecret: "s3cret",