Skip to content

Commit

Permalink
refactor(common): use strings.ToLower for LOG_DOCKER env variable…
Browse files Browse the repository at this point in the history
… check to improve code readability and maintainability (#1035)

Co-authored-by: luogz17 <[email protected]>
Co-authored-by: HAOYUatHZ <[email protected]>
  • Loading branch information
3 people authored Dec 11, 2023
1 parent 2e627f7 commit 566fb23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var verbose bool

func init() {
v := os.Getenv("LOG_DOCKER")
if v == "true" || v == "TRUE" {
if strings.ToLower(v) == "true" {
verbose = true
}
}
Expand Down

0 comments on commit 566fb23

Please sign in to comment.