Skip to content

Commit

Permalink
remove unused env 'IsProduction'
Browse files Browse the repository at this point in the history
  • Loading branch information
yusing committed Feb 26, 2025
1 parent f9b7e64 commit 09db57d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions internal/common/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ import (
var (
prefixes = []string{"GODOXY_", "GOPROXY_", ""}

IsTest = GetEnvBool("TEST", false) || strings.HasSuffix(os.Args[0], ".test")
IsDebug = GetEnvBool("DEBUG", IsTest)
IsTrace = GetEnvBool("TRACE", false) && IsDebug
IsProduction = !IsTest && !IsDebug
IsTest = GetEnvBool("TEST", false) || strings.HasSuffix(os.Args[0], ".test")
IsDebug = GetEnvBool("DEBUG", IsTest)
IsTrace = GetEnvBool("TRACE", false) && IsDebug

ProxyHTTPAddr,
ProxyHTTPHost,
Expand Down

0 comments on commit 09db57d

Please sign in to comment.